Fix typos
Elif statements wouldn't run, as there were no 'then' statements
This commit is contained in:
7
btpl.sh
7
btpl.sh
@@ -1,10 +1,11 @@
|
|||||||
#/bin/sh
|
#/bin/sh
|
||||||
|
|
||||||
if [ $# \< 2 ]
|
if [ $# \< 2 ]
|
||||||
then
|
then
|
||||||
python3 ~/.bluetooth-proximity-locking/btpl.py [bluetooth address] > /dev/null &
|
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 &
|
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
|
pkill ~/.bluetooth-proximity-locking/btpl.py
|
||||||
fi
|
fi
|
||||||
|
|||||||
Reference in New Issue
Block a user