Created
April 3, 2019 20:33
-
-
Save jmcblane/798a7d8d196cd8a5553e119a7e3981ab to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/sh | |
if [ $(cat /tmp/test) == 1 ]; then | |
echo "Yes!" | |
echo 0 > /tmp/test | |
else | |
echo "No!" | |
echo 1 > /tmp/test | |
fi |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment