Skip to content

Commit

Permalink
nixos/buildkite-agent: fix variable expansion in hook scripts
Browse files Browse the repository at this point in the history
@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.

(cherry picked from commit 3e446ec)
Signed-off-by: Domen Kožar <domen@dev.si>
  • Loading branch information
rvl authored and domenkozar committed Apr 27, 2018
1 parent 492d812 commit 6473360
Showing 1 changed file with 1 addition and 1 deletion.
Expand Up @@ -17,7 +17,7 @@ let

hooksDir = let
mkHookEntry = name: value: ''
cat > $out/${name} <<EOF
cat > $out/${name} <<'EOF'
#! ${pkgs.stdenv.shell}
set -e
${value}
Expand Down

0 comments on commit 6473360

Please sign in to comment.