Handle arguments correctly

Why was this not done already lol
This commit is contained in:
Phantop 2021-08-04 21:27:59 -04:00
parent 7504c777a7
commit 45c622aa6e
2 changed files with 2 additions and 2 deletions

View file

@ -1,4 +1,4 @@
#!/bin/sh
HERE=$(dirname $(readlink -f "${0}"))
export LD_LIBRARY_PATH="${HERE}":$PATH
wine "${HERE}"/Pine.exe $@
wine "${HERE}"/exe "$@"

View file

@ -16,7 +16,7 @@ dwarf() {
DIR=/tmp/.dwarf_$(basename "$0")$RANDOM
mkdir "$DIR" 2> /dev/null
dwarfs -o offset=auto "$0" "$DIR" 2> /dev/null
"$DIR/AppRun" $@
"$DIR/AppRun" "$@"
fusermount -uz "$DIR" 2> /dev/null
rmdir "$DIR" 2> /dev/null
exit