This simple bash script always executes with my embedded error message, 'Something went horribly wrong.'
This script was originally coded by someone else; I have no idea what (exactly)
gpio -g mode 22 in means, and a google search for it turns up literally nothing.
This was part of a git source from: this project.
#!/bin/bash gpio -g mode 22 in echo 'entering if block' if [ $(gpio -g read 22) = 1 ] then sudo python /home/pi/.config/pianobar/scripts/ButtonWatcher.py #echo 'This went well.' else echo 'Something went horribly wrong.' fi