nixos/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
ab5dcdddd1
commit
3e446ecd56
@ -17,7 +17,7 @@ let
|
|||||||
|
|
||||||
hooksDir = let
|
hooksDir = let
|
||||||
mkHookEntry = name: value: ''
|
mkHookEntry = name: value: ''
|
||||||
cat > $out/${name} <<EOF
|
cat > $out/${name} <<'EOF'
|
||||||
#! ${pkgs.runtimeShell}
|
#! ${pkgs.runtimeShell}
|
||||||
set -e
|
set -e
|
||||||
${value}
|
${value}
|
||||||
|
Loading…
Reference in New Issue
Block a user