Skip to content

Commit aeb18a0

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

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

hooks/terragrunt_providers_lock.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ 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
2020
local -ra RUN_ALL_SUBCOMMAND=(run-all providers lock)
2121
fi

hooks/terragrunt_validate.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ 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
2020
local -ra RUN_ALL_SUBCOMMAND=(run-all validate)
2121
fi

0 commit comments

Comments
 (0)