diff options
author | Christopher Luna | 2018-01-06 01:57:09 -0600 |
---|---|---|
committer | Christopher Luna | 2018-01-06 01:57:09 -0600 |
commit | 4718155e4fbee71a77efe1506f40f705ea0dd82b (patch) | |
tree | b0802d5959557aa4d2c497b5b5c5a2fd6aadd965 /th07.sh | |
parent | 484ab2d3f84306f87296428788f02d6911cf1741 (diff) | |
download | aur-4718155e4fbee71a77efe1506f40f705ea0dd82b.tar.gz |
Removed lha dependency
Diffstat (limited to 'th07.sh')
-rw-r--r-- | th07.sh | 10 |
1 files changed, 5 insertions, 5 deletions
@@ -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 |