Skip to content

Commit

Permalink
#912: fiddle with variables
Browse files Browse the repository at this point in the history
  • Loading branch information
JoernBerkefeld committed May 17, 2023
1 parent e28f540 commit c2d21f5
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions .husky/post-checkout
Original file line number Diff line number Diff line change
Expand Up @@ -20,10 +20,10 @@ IFS=$'\n'
# $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 "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)'`
PACKAGES=`git diff --name-only $1 $2 | grep -E '(^package-lock\.json)'`
echo "[POST-CHECKOUT-6]"

if [[ ${PACKAGES[@]} ]]; then
Expand Down

0 comments on commit c2d21f5

Please sign in to comment.