From 95dc1ef1f0d5da42f3b92d9af00cbb0179cb5ecf Mon Sep 17 00:00:00 2001 From: Bignaux Ronan Date: Sun, 8 Mar 2020 13:53:48 +0100 Subject: appimageTools: fix appimage-exec.sh passing arguments --- pkgs/build-support/appimage/appimage-exec.sh | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'pkgs/build-support/appimage') diff --git a/pkgs/build-support/appimage/appimage-exec.sh b/pkgs/build-support/appimage/appimage-exec.sh index b209ce983e585..ee952db0fd748 100755 --- a/pkgs/build-support/appimage/appimage-exec.sh +++ b/pkgs/build-support/appimage/appimage-exec.sh @@ -3,7 +3,6 @@ if [ -n "$DEBUG" ] ; then set -x fi -#export PATH=@path@ PATH="@path@:$PATH" #DEBUG=0 @@ -69,7 +68,6 @@ apprun() { fi export PATH="$PATH:$PWD/usr/bin" - wrap "$@" } wrap() { @@ -98,6 +96,7 @@ while getopts ":a:d:xrw" option; do a) #AppImage file # why realpath? APPIMAGE="$(realpath "${OPTARG}")" + break ;; d) #appimage Directory export APPDIR=${OPTARG} @@ -124,7 +123,8 @@ if [[ $unpack_opt = true ]] && [[ -f "$APPIMAGE" ]]; then fi if [[ $apprun_opt = true ]] && [[ -f "$APPIMAGE" ]]; then - apprun "$@" + apprun + wrap "$@" exit fi -- cgit 1.4.1