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:
Rodney Lorrimar 2018-04-02 11:30:24 +01:00 committed by Domen Kožar
parent ab5dcdddd1
commit 3e446ecd56

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