summary refs log tree commit diff
path: root/nixos/modules/services/continuous-integration
diff options
context:
space:
mode:
authorRodney Lorrimar <dev@rodney.id.au>2018-04-02 11:30:24 +0100
committerDomen Kožar <domen@enlambda.com>2018-04-27 12:17:40 +0100
commit3e446ecd564611953c75caf97a855285ef30ba38 (patch)
treee5f9054a41808b4507430c92db36928e8c38f22c /nixos/modules/services/continuous-integration
parentab5dcdddd18c780dda05fb9421be0242ae79d41e (diff)
downloadnixlib-3e446ecd564611953c75caf97a855285ef30ba38.tar
nixlib-3e446ecd564611953c75caf97a855285ef30ba38.tar.gz
nixlib-3e446ecd564611953c75caf97a855285ef30ba38.tar.bz2
nixlib-3e446ecd564611953c75caf97a855285ef30ba38.tar.lz
nixlib-3e446ecd564611953c75caf97a855285ef30ba38.tar.xz
nixlib-3e446ecd564611953c75caf97a855285ef30ba38.tar.zst
nixlib-3e446ecd564611953c75caf97a855285ef30ba38.zip
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.
Diffstat (limited to 'nixos/modules/services/continuous-integration')
-rw-r--r--nixos/modules/services/continuous-integration/buildkite-agent.nix2
1 files changed, 1 insertions, 1 deletions
diff --git a/nixos/modules/services/continuous-integration/buildkite-agent.nix b/nixos/modules/services/continuous-integration/buildkite-agent.nix
index 03af9a7859ec..d647b7b9fa49 100644
--- a/nixos/modules/services/continuous-integration/buildkite-agent.nix
+++ b/nixos/modules/services/continuous-integration/buildkite-agent.nix
@@ -17,7 +17,7 @@ let
 
   hooksDir = let
     mkHookEntry = name: value: ''
-      cat > $out/${name} <<EOF
+      cat > $out/${name} <<'EOF'
       #! ${pkgs.runtimeShell}
       set -e
       ${value}