Skip to content

Commit

Permalink
#912: fix array
Browse files Browse the repository at this point in the history
  • Loading branch information
JoernBerkefeld committed May 17, 2023
1 parent 16d12bd commit dee8d3a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion .husky/post-checkout
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ IFS=$'\n'
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)'")
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 dee8d3a

Please sign in to comment.