1
0
Fork 0
mirror of https://github.com/LnL7/nix-darwin.git synced 2024-12-15 17:51:01 +00:00

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:
Rodney Lorrimar 2018-04-25 06:56:28 +01:00
parent 5ea3bc169a
commit 6aac14a46d

View file

@ -17,7 +17,7 @@ let
hooksDir = let hooksDir = let
mkHookEntry = name: value: '' mkHookEntry = name: value: ''
cat > $out/${name} <<EOF cat > $out/${name} <<'EOF'
#! ${pkgs.stdenv.shell} #! ${pkgs.stdenv.shell}
set -e set -e
${value} ${value}