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.
commit3e446ecd564611953c75caf97a855285ef30ba38
authorRodney Lorrimar <dev@rodney.id.au>
dateMon 2 Apr 2018, 11:30 (9 years ago)
parentab5dcdd
nixos/modules/services/continuous-integration/buildkite-agent.nix+1−1
@@ -17,7 +17,7 @@ let
1717
1818 hooksDir = let
1919 mkHookEntry = name: value: ''
20− cat > $out/${name} <<EOF
20+ cat > $out/${name} <<'EOF'
2121 #! ${pkgs.runtimeShell}
2222 set -e
2323 ${value}