diff options
author | Nikolay Amiantov <ab@fmap.me> | 2016-07-09 03:05:11 +0300 |
---|---|---|
committer | Nikolay Amiantov <ab@fmap.me> | 2016-07-09 03:05:11 +0300 |
commit | d43bde5f2ba0c26f62449e14ccd847d507a31711 (patch) | |
tree | 7d85c21f22e108b18fcae5e1791d122d1cfc6bc6 /pkgs | |
parent | ff3e7d2b4bebca772d22c7d75bc91204c0cf6316 (diff) | |
download | nixlib-d43bde5f2ba0c26f62449e14ccd847d507a31711.tar nixlib-d43bde5f2ba0c26f62449e14ccd847d507a31711.tar.gz nixlib-d43bde5f2ba0c26f62449e14ccd847d507a31711.tar.bz2 nixlib-d43bde5f2ba0c26f62449e14ccd847d507a31711.tar.lz nixlib-d43bde5f2ba0c26f62449e14ccd847d507a31711.tar.xz nixlib-d43bde5f2ba0c26f62449e14ccd847d507a31711.tar.zst nixlib-d43bde5f2ba0c26f62449e14ccd847d507a31711.zip |
patchShebangs: quote variable assignment
Diffstat (limited to 'pkgs')
-rw-r--r-- | pkgs/build-support/setup-hooks/patch-shebangs.sh | 2 |
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 f3ecfdd96e8f..4317a5f4dade 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 |