Skip to content

Commit 57235d9

Browse files
committed
fix: proper argument handling for terragrunt hooks
1 parent 48b3a29 commit 57235d9

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

hooks/terragrunt_providers_lock.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,9 +15,9 @@ function main {
1515
# JFYI: terragrunt providers lock color already suppressed via PRE_COMMIT_COLOR=never
1616

1717
if common::terragrunt_version_ge_0.78; then
18-
local -ra RUN_ALL_SUBCOMMAND=(run --all providers lock)
18+
local -ra RUN_ALL_SUBCOMMAND=(run --all -- providers lock)
1919
else
20-
local -ra RUN_ALL_SUBCOMMAND=(run-all providers lock)
20+
local -ra RUN_ALL_SUBCOMMAND=(run-all -- providers lock)
2121
fi
2222

2323
# shellcheck disable=SC2153 # False positive

hooks/terragrunt_validate.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,9 +15,9 @@ function main {
1515
# JFYI: terragrunt validate color already suppressed via PRE_COMMIT_COLOR=never
1616

1717
if common::terragrunt_version_ge_0.78; then
18-
local -ra RUN_ALL_SUBCOMMAND=(run --all validate)
18+
local -ra RUN_ALL_SUBCOMMAND=(run --all -- validate)
1919
else
20-
local -ra RUN_ALL_SUBCOMMAND=(run-all validate)
20+
local -ra RUN_ALL_SUBCOMMAND=(run-all -- validate)
2121
fi
2222

2323
# shellcheck disable=SC2153 # False positive

0 commit comments

Comments
 (0)