patchShebangs: quote variable assignment

This commit is contained in:
Nikolay Amiantov 2016-07-09 03:05:11 +03:00
parent ff3e7d2b4b
commit d43bde5f2b

View File

@ -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