buildkite-agent: fix variable expansion in hook scripts
@cleverca found this bug in the declarative hooks config. Any shell variables referenced in a hook script would get expanded by the hooks directory builder. Prevent variable expansion by quoting the here doc limit string.
This commit is contained in:
parent
5ea3bc169a
commit
6aac14a46d
1 changed files with 1 additions and 1 deletions
|
|
@ -17,7 +17,7 @@ let
|
|||
|
||||
hooksDir = let
|
||||
mkHookEntry = name: value: ''
|
||||
cat > $out/${name} <<EOF
|
||||
cat > $out/${name} <<'EOF'
|
||||
#! ${pkgs.stdenv.shell}
|
||||
set -e
|
||||
${value}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue