patchShebangs: quote variable assignment

wip/yesman
Nikolay Amiantov 8 years ago
parent ff3e7d2b4b
commit d43bde5f2b
  1. 2
      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

Loading…
Cancel
Save