Fix typos

Elif statements wouldn't run, as there were no 'then' statements
This commit is contained in:
Matthew Grove
2019-04-04 18:10:49 +01:00
parent 995a67da24
commit f673ea0164

View File

@@ -1,10 +1,11 @@
#/bin/sh
if [ $# \< 2 ]
then
python3 ~/.bluetooth-proximity-locking/btpl.py [bluetooth address] > /dev/null &
elif [ "$1" = "-r" ] || [ "$1" = "--run" ]
elif [ [ "$1" = "-r" ] || [ "$1" = "--run" ] ]
then
python3 ~/.bluetooth-proximity-locking/btpl.py [bluetooth address] > /dev/null &
elif [ "$1" = "-s" ] || [ "$1" = "--stop" ]
elif [ [ "$1" = "-s" ] || [ "$1" = "--stop" ] ]
then
pkill ~/.bluetooth-proximity-locking/btpl.py
fi