Skip to content

Instantly share code, notes, and snippets.

@ig0r
Created March 18, 2016 21:28
Show Gist options
  • Save ig0r/fa74dd8c0f53e6134075 to your computer and use it in GitHub Desktop.
Save ig0r/fa74dd8c0f53e6134075 to your computer and use it in GitHub Desktop.
checking environment variable
#!/bin/bash
if [ -z "$STATE" ]; then
echo "Need to set STATE"
exit 1
else
echo "STATAE is set"
fi
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment