pkg.sh: Fix log-install invocation line

Signed-off-by: Jan Lindemann <jan@janware.com>
This commit is contained in:
Jan Lindemann 2017-07-26 16:44:43 +00:00
commit a01cfc4158

View file

@ -610,14 +610,15 @@ install_exe_wrapper()
echo -e "#!/usr/bin/python\n\nimport sys\nimport subprocess\nargs=sys.argv; args[0] = \"$from\"\nsubprocess.call([ '/usr/bin/python' ] + args)" > "$tmp"
;;
pl)
echo -e "#!/bin/bash\n\nexec /usr/bin/perl \"$from\"" > "$tmp"
echo -e "#!/bin/bash\n\nexec /usr/bin/perl \"$from\" \"\$@\"" > "$tmp"
#echo -e "#!/bin/bash\n\nexec /usr/bin/perl \"$from\"" > "$tmp"
;;
sh)
echo -e "#!/bin/bash\n\n\"$from\"" > "$tmp"
echo -e "#!/bin/bash\n\nexec /bin/bash \"$from\" \"\$@\"" > "$tmp"
;;
*)
if file "$from" | grep -qi executable; then
echo -e "#!/bin/bash\n\n\"$from\"" > "$tmp"
echo -e "#!/bin/bash\n\nexec \"$from\" \"\$@\"" > "$tmp"
else
ln -sf $from $to
return