summarylogtreecommitdiffstats
path: root/th07.sh
diff options
context:
space:
mode:
authorChristopher Luna2018-01-06 01:57:09 -0600
committerChristopher Luna2018-01-06 01:57:09 -0600
commit4718155e4fbee71a77efe1506f40f705ea0dd82b (patch)
treeb0802d5959557aa4d2c497b5b5c5a2fd6aadd965 /th07.sh
parent484ab2d3f84306f87296428788f02d6911cf1741 (diff)
downloadaur-th07.tar.gz
Removed lha dependency
Diffstat (limited to 'th07.sh')
-rw-r--r--th07.sh10
1 files changed, 5 insertions, 5 deletions
diff --git a/th07.sh b/th07.sh
index 8021bbabd13..026bde26054 100644
--- a/th07.sh
+++ b/th07.sh
@@ -13,10 +13,10 @@ if [ ! -f "$HOME"/.th07/th07.cfg ] ; then
echo "AAABAAIABAD//////////wMAAAACAAcAWAJYAgIDAAIBAQAAAgABAAAAAAAAAAAAAAAAAAEIAAA=" |base64 -d > "$HOME"/.th07/th07.cfg || exit 1
fi
-if [ "" != "`whereis timidity|grep '/usr/bin'`" ] ; then
- if [ "" == "`ps -A|grep timidity`" ] ; then
+if [ -n "`whereis timidity|grep '/usr/bin'`" ] ; then
+ if [ -z "`ps -A|grep timidity`" ] ; then
timidity -iA &
- myins="true"
+ timiditypid=$!
fi
fi
@@ -29,7 +29,7 @@ fi
if [ ! -e "$HOME"/.th07/th07e.exe ]; then
wine "$HOME"/.th07/th07.exe "$@"
fi
-if [ "true" == "$myins" ] ; then
- killall timidity
+if [ -n "$timiditypid" ]; then
+ kill $timiditypid
fi