From afac6c4fc7033a086259efe36ea5360f6da73a11 Mon Sep 17 00:00:00 2001 From: Kirk McKelvey Date: Mon, 22 Jun 2020 16:26:06 -0400 Subject: [PATCH] stop non-portable quote-grouping of git args --- sh/husky.sh | 2 +- src/installer/__tests__/__snapshots__/scripts.ts.snap | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/sh/husky.sh b/sh/husky.sh index b4a6673df..c33500d03 100644 --- a/sh/husky.sh +++ b/sh/husky.sh @@ -10,7 +10,7 @@ command_exists () { run_command () { if command_exists "$1"; then - "$@" husky-run $hookName "$gitParams" + "$@" husky-run $hookName $gitParams exitCode="$?" debug "$* husky-run exited with $exitCode exit code" diff --git a/src/installer/__tests__/__snapshots__/scripts.ts.snap b/src/installer/__tests__/__snapshots__/scripts.ts.snap index 5f657067d..37d4da4fc 100644 --- a/src/installer/__tests__/__snapshots__/scripts.ts.snap +++ b/src/installer/__tests__/__snapshots__/scripts.ts.snap @@ -39,7 +39,7 @@ command_exists () { run_command () { if command_exists \\"$1\\"; then - \\"$@\\" husky-run $hookName \\"$gitParams\\" + \\"$@\\" husky-run $hookName $gitParams exitCode=\\"$?\\" debug \\"$* husky-run exited with $exitCode exit code\\"