* Do an "exec" to get rid of an unnecessary shell.

svn path=/nixpkgs/trunk/; revision=30566
This commit is contained in:
Eelco Dolstra 2011-11-25 17:01:54 +00:00
parent 83027a49c9
commit a7b50dc5de
2 changed files with 2 additions and 2 deletions

View File

@ -161,7 +161,7 @@ rec {
file $i;
if file $i | grep executable &>/dev/null; then
rm "$out/bin/$(basename "$i")"
echo -e '#! /bin/sh\n"'"$i"'" "$@"' > "$out/bin/$(basename "$i")"
echo -e '#! /bin/sh\nexec "'"$i"'" "$@"' > "$out/bin/$(basename "$i")"
chmod a+x "$out/bin/$(basename "$i")"
fi;
done;

View File

@ -161,7 +161,7 @@ rec {
file $i;
if file $i | grep executable &>/dev/null; then
rm "$out/bin/$(basename "$i")"
echo -e '#! /bin/sh\n"'"$i"'" "$@"' > "$out/bin/$(basename "$i")"
echo -e '#! /bin/sh\nexec "'"$i"'" "$@"' > "$out/bin/$(basename "$i")"
chmod a+x "$out/bin/$(basename "$i")"
fi;
done;