Skip to content

Commit

Permalink
#912: debug info
Browse files Browse the repository at this point in the history
  • Loading branch information
JoernBerkefeld committed May 17, 2023
1 parent b2cf57b commit e28f540
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions .husky/post-checkout
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,14 @@ echo $3
# ### run npm install ###
IFS=$'\n'
# extract all paths to package-lock.json files
PACKAGES=`git diff --name-only $1 HEAD | grep -E '(^package-lock\.json)'`
echo "[POST-CHECKOUT-4]"
# $1 is the new HEAD pointer
# $2 is the previous HEAD pointer
echo "[POST-CHECKOUT-#4]"
echo "git diff --name-only `$1 $2` | grep -E '(^package-lock\.json)'"
echo "[POST-CHECKOUT-5]"

PACKAGES=`git diff --name-only `$1 $2` | grep -E '(^package-lock\.json)'`
echo "[POST-CHECKOUT-6]"

if [[ ${PACKAGES[@]} ]]; then
for package in $PACKAGES; do
Expand Down

0 comments on commit e28f540

Please sign in to comment.