From 3cc0c9341812af3e6f365fc51002539ef63a7a7d Mon Sep 17 00:00:00 2001 From: lanxu Date: Sat, 18 May 2019 13:05:44 +0300 Subject: [PATCH] Wine script now removes extra params --- run-wine-prefix.sh | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/run-wine-prefix.sh b/run-wine-prefix.sh index 71882cd..a3a9e2f 100755 --- a/run-wine-prefix.sh +++ b/run-wine-prefix.sh @@ -3,6 +3,7 @@ if [ $# -eq 0 ] then echo "No arguments supplied" + exit -1 fi WINEDIR=$HOME/Pelit/Wine/$1/ @@ -12,5 +13,10 @@ export WINEDEBUG=-all export WINEPREFIX=$WINEDIR echo "Run in $WINEDIR" -wine $2 +#if [ $# -eq 1 ] +#then +# wine $2 +#fi +shift 1; +exec $@