Skip to content

Instantly share code, notes, and snippets.

@ugurozgen
Created March 3, 2020 07:43
Show Gist options
  • Select an option

  • Save ugurozgen/45ce6caf547b99704843c7811b51cd54 to your computer and use it in GitHub Desktop.

Select an option

Save ugurozgen/45ce6caf547b99704843c7811b51cd54 to your computer and use it in GitHub Desktop.
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