summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorAtapi2024-04-12 01:20:18 -0600
committerAtapi2024-04-12 01:20:18 -0600
commit1e1e99223159e1073f0f4ea5e6aea3ac6068fe63 (patch)
tree9acd4d8360ef793b2501b0244741db8c0634a6ba
parentacca1b7f022b2f09de17d58f02509b8147686b33 (diff)
downloadaur-1e1e99223159e1073f0f4ea5e6aea3ac6068fe63.tar.gz
fix halt on no args
-rwxr-xr-xsappy20063
1 files changed, 2 insertions, 1 deletions
diff --git a/sappy2006 b/sappy2006
index a0206621fbd5..c3060337ebef 100755
--- a/sappy2006
+++ b/sappy2006
@@ -44,4 +44,5 @@ else
echo ""
fi
-wine $SAPPYDIR/sappy.exe "$(winepath -w "$1")"
+[[ "$1" == "" ]] && wine $SAPPYDIR/sappy.exe # no args
+[[ "$1" != "" ]] && wine $SAPPYDIR/sappy.exe "$(winepath -w "$1")" # args