From d43bde5f2ba0c26f62449e14ccd847d507a31711 Mon Sep 17 00:00:00 2001 From: Nikolay Amiantov Date: Sat, 9 Jul 2016 03:05:11 +0300 Subject: patchShebangs: quote variable assignment --- pkgs/build-support/setup-hooks/patch-shebangs.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'pkgs/build-support') 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 -- cgit 1.4.1