Created
September 25, 2019 13:36
-
-
Save gugat/2397cb16196bf09cc4850cfcbd608de0 to your computer and use it in GitHub Desktop.
How to exit if no arguments are given to the script
This file contains hidden or 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
#!/bin/bash | |
if [[ $# -eq 0 ]] ; then | |
echo 'Give me a parameter :D' | |
exit 0 | |
fi |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment