finish shellcheck fixes for fun

pull/6/head
Rick Farina (Zero_Chaos) 2019-12-13 13:48:50 -05:00
parent 534d8cc12c
commit cc8fb902f8
No known key found for this signature in database
GPG Key ID: A29433C0AA431DDC
1 changed files with 3 additions and 3 deletions

View File

@ -16,10 +16,10 @@ function check_gpio() {
gpio0=$(check_gpio 0) gpio0=$(check_gpio 0)
gpio2=$(check_gpio 2) gpio2=$(check_gpio 2)
if [ ${gpio0} -eq "0" ] && [ ${gpio2} -eq "0" ]; then if [ "${gpio0}" -eq "0" ] && [ "${gpio2}" -eq "0" ]; then
echo "switch1" echo "switch1"
elif [ ${gpio0} -eq "0" ]; then elif [ "${gpio0}" -eq "0" ]; then
echo "switch3" echo "switch3"
elif [ ${gpio2} -eq "0" ]; then elif [ "${gpio2}" -eq "0" ]; then
echo "switch2" echo "switch2"
fi fi