* Do an "exec" to get rid of an unnecessary shell.
svn path=/nixpkgs/trunk/; revision=30566
This commit is contained in:
parent
83027a49c9
commit
a7b50dc5de
@ -161,7 +161,7 @@ rec {
|
|||||||
file $i;
|
file $i;
|
||||||
if file $i | grep executable &>/dev/null; then
|
if file $i | grep executable &>/dev/null; then
|
||||||
rm "$out/bin/$(basename "$i")"
|
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")"
|
chmod a+x "$out/bin/$(basename "$i")"
|
||||||
fi;
|
fi;
|
||||||
done;
|
done;
|
||||||
|
@ -161,7 +161,7 @@ rec {
|
|||||||
file $i;
|
file $i;
|
||||||
if file $i | grep executable &>/dev/null; then
|
if file $i | grep executable &>/dev/null; then
|
||||||
rm "$out/bin/$(basename "$i")"
|
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")"
|
chmod a+x "$out/bin/$(basename "$i")"
|
||||||
fi;
|
fi;
|
||||||
done;
|
done;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user