Skip to content

Instantly share code, notes, and snippets.

@jmcblane
Created April 3, 2019 20:33
Show Gist options
  • Save jmcblane/798a7d8d196cd8a5553e119a7e3981ab to your computer and use it in GitHub Desktop.
Save jmcblane/798a7d8d196cd8a5553e119a7e3981ab to your computer and use it in GitHub Desktop.
#!/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