mirror of
ssh://git.janware.com/srv/git/janware/proj/jw-pkg
synced 2026-01-23 22:40:38 +01:00
pkg.sh: Fix log-install invocation line
Signed-off-by: Jan Lindemann <jan@janware.com>
This commit is contained in:
parent
a69a3938f2
commit
a01cfc4158
1 changed files with 4 additions and 3 deletions
|
|
@ -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"
|
echo -e "#!/usr/bin/python\n\nimport sys\nimport subprocess\nargs=sys.argv; args[0] = \"$from\"\nsubprocess.call([ '/usr/bin/python' ] + args)" > "$tmp"
|
||||||
;;
|
;;
|
||||||
pl)
|
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)
|
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
|
if file "$from" | grep -qi executable; then
|
||||||
echo -e "#!/bin/bash\n\n\"$from\"" > "$tmp"
|
echo -e "#!/bin/bash\n\nexec \"$from\" \"\$@\"" > "$tmp"
|
||||||
else
|
else
|
||||||
ln -sf $from $to
|
ln -sf $from $to
|
||||||
return
|
return
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue