From dee8d3ae5685db5c7a0dcd1dedd1c3a3d86913b2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=B6rn=20Berkefeld?= Date: Wed, 17 May 2023 15:27:31 +0200 Subject: [PATCH] #912: fix array --- .husky/post-checkout | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.husky/post-checkout b/.husky/post-checkout index 67b42b9a9..c9f7cc6c5 100644 --- a/.husky/post-checkout +++ b/.husky/post-checkout @@ -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