summary refs log tree commit diff
path: root/pkgs/build-support/setup-hooks/patch-shebangs.sh
diff options
context:
space:
mode:
authorNikolay Amiantov <ab@fmap.me>2016-07-09 03:05:11 +0300
committerNikolay Amiantov <ab@fmap.me>2016-07-09 03:05:11 +0300
commitd43bde5f2ba0c26f62449e14ccd847d507a31711 (patch)
tree7d85c21f22e108b18fcae5e1791d122d1cfc6bc6 /pkgs/build-support/setup-hooks/patch-shebangs.sh
parentff3e7d2b4bebca772d22c7d75bc91204c0cf6316 (diff)
downloadnixpkgs-d43bde5f2ba0c26f62449e14ccd847d507a31711.tar
nixpkgs-d43bde5f2ba0c26f62449e14ccd847d507a31711.tar.gz
nixpkgs-d43bde5f2ba0c26f62449e14ccd847d507a31711.tar.bz2
nixpkgs-d43bde5f2ba0c26f62449e14ccd847d507a31711.tar.lz
nixpkgs-d43bde5f2ba0c26f62449e14ccd847d507a31711.tar.xz
nixpkgs-d43bde5f2ba0c26f62449e14ccd847d507a31711.tar.zst
nixpkgs-d43bde5f2ba0c26f62449e14ccd847d507a31711.zip
patchShebangs: quote variable assignment
Diffstat (limited to 'pkgs/build-support/setup-hooks/patch-shebangs.sh')
-rw-r--r--pkgs/build-support/setup-hooks/patch-shebangs.sh2
1 files changed, 1 insertions, 1 deletions
diff --git a/pkgs/build-support/setup-hooks/patch-shebangs.sh b/pkgs/build-support/setup-hooks/patch-shebangs.sh
index f3ecfdd96e8..4317a5f4dad 100644
--- a/pkgs/build-support/setup-hooks/patch-shebangs.sh
+++ b/pkgs/build-support/setup-hooks/patch-shebangs.sh
@@ -47,7 +47,7 @@ patchShebangs() {
         fi
 
         # Strip trailing whitespace introduced when no arguments are present
-        newInterpreterLine=$(echo "$newPath $args" | sed 's/[[:space:]]*$//')
+        newInterpreterLine="$(echo "$newPath $args" | sed 's/[[:space:]]*$//')"
 
         if [ -n "$oldPath" -a "${oldPath:0:${#NIX_STORE}}" != "$NIX_STORE" ]; then
             if [ -n "$newPath" -a "$newPath" != "$oldPath" ]; then