Skip to content

Commit

Permalink
#912: cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
JoernBerkefeld committed May 17, 2023
1 parent 5223df8 commit 3c84ef0
Show file tree
Hide file tree
Showing 3 changed files with 0 additions and 6 deletions.
4 changes: 0 additions & 4 deletions .husky/post-checkout
Original file line number Diff line number Diff line change
Expand Up @@ -10,15 +10,12 @@ echo "#$TICKETID: " > ".git/templatemessage"

# ### run npm install ###
echo "[POST-CHECKOUT] 📦 Checking for changes to dependencies"
# set -x
# define how to split strings into array elements
IFS=$'\n'
# $1 is the new HEAD pointer
NEWHEAD=$1
# NEWHEAD="5c279fb876053499698b996b10447a367cd05b95"
# $2 is the previous HEAD pointer
OLDHEAD=$2
# OLDHEAD="16d12bd271e22a1e0b5dc3a8dcbb4bf3327cb867"
# extract all paths to package-lock.json files
PACKAGE_LOCK_REGEX="(^package-lock\.json)"
PACKAGES=$(git diff --name-only $NEWHEAD $OLDHEAD | grep -E $PACKAGE_LOCK_REGEX || true)
Expand All @@ -32,4 +29,3 @@ if [[ ${PACKAGES[@]} ]]; then
else
echo "📦 All packages up-to-date. No need to run npm install."
fi
# set +x
1 change: 0 additions & 1 deletion .husky/post-merge
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@ echo "[POST-MERGE] 📦 Checking for changes to dependencies"
IFS=$'\n'
# extract all paths to package-lock.json files
PACKAGE_LOCK_REGEX="(^package-lock\.json)"
# PACKAGES=`git diff --name-only HEAD^1 HEAD | grep -E '(^package-lock\.json)'`
PACKAGES=$(git diff --name-only HEAD^1 HEAD | grep -E $PACKAGE_LOCK_REGEX || true)

if [[ ${PACKAGES[@]} ]]; then
Expand Down
1 change: 0 additions & 1 deletion 912-test.txt

This file was deleted.

0 comments on commit 3c84ef0

Please sign in to comment.