Created
September 19, 2017 21:49
-
-
Save sarnobat/cf24cf6761dd86a1e4678713c494af03 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
test -e "$1" || echo "[DEBUG] Does not exist: $1" | |
# Do we ever need if-else syntax? Probably not but here it is anyway: | |
if [ -e "$1" ] | |
then | |
echo "ok" | |
else | |
echo "nok" | |
fi |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment