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
mkHookEntry = name: value: ''
cat > $out/${name} <<EOF
cat > $out/${name} <<'EOF'
#! ${pkgs.stdenv.shell}
set -e
${value}