From a01cfc41588a06789aa25ad1a31562afdaa53840 Mon Sep 17 00:00:00 2001 From: Jan Lindemann Date: Wed, 26 Jul 2017 16:44:43 +0000 Subject: [PATCH] pkg.sh: Fix log-install invocation line Signed-off-by: Jan Lindemann --- scripts/pkg.sh | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/scripts/pkg.sh b/scripts/pkg.sh index e20ea25b..6e6595b5 100644 --- a/scripts/pkg.sh +++ b/scripts/pkg.sh @@ -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