Created
March 3, 2020 07:43
-
-
Save ugurozgen/45ce6caf547b99704843c7811b51cd54 to your computer and use it in GitHub Desktop.
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
| hasCli() { | |
| hasCurl=$(which curl) | |
| if [ "$?" = "1" ]; then | |
| echo "You need curl to use this script." | |
| exit 1 | |
| fi | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment