appimageTools: fix appimage-exec.sh passing arguments
This commit is contained in:
parent
2a6cd0e6c0
commit
95dc1ef1f0
|
@ -3,7 +3,6 @@ if [ -n "$DEBUG" ] ; then
|
||||||
set -x
|
set -x
|
||||||
fi
|
fi
|
||||||
|
|
||||||
#export PATH=@path@
|
|
||||||
PATH="@path@:$PATH"
|
PATH="@path@:$PATH"
|
||||||
#DEBUG=0
|
#DEBUG=0
|
||||||
|
|
||||||
|
@ -69,7 +68,6 @@ apprun() {
|
||||||
fi
|
fi
|
||||||
|
|
||||||
export PATH="$PATH:$PWD/usr/bin"
|
export PATH="$PATH:$PWD/usr/bin"
|
||||||
wrap "$@"
|
|
||||||
}
|
}
|
||||||
|
|
||||||
wrap() {
|
wrap() {
|
||||||
|
@ -98,6 +96,7 @@ while getopts ":a:d:xrw" option; do
|
||||||
a) #AppImage file
|
a) #AppImage file
|
||||||
# why realpath?
|
# why realpath?
|
||||||
APPIMAGE="$(realpath "${OPTARG}")"
|
APPIMAGE="$(realpath "${OPTARG}")"
|
||||||
|
break
|
||||||
;;
|
;;
|
||||||
d) #appimage Directory
|
d) #appimage Directory
|
||||||
export APPDIR=${OPTARG}
|
export APPDIR=${OPTARG}
|
||||||
|
@ -124,7 +123,8 @@ if [[ $unpack_opt = true ]] && [[ -f "$APPIMAGE" ]]; then
|
||||||
fi
|
fi
|
||||||
|
|
||||||
if [[ $apprun_opt = true ]] && [[ -f "$APPIMAGE" ]]; then
|
if [[ $apprun_opt = true ]] && [[ -f "$APPIMAGE" ]]; then
|
||||||
apprun "$@"
|
apprun
|
||||||
|
wrap "$@"
|
||||||
exit
|
exit
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue