Skip to content

Commit

Permalink
better error message
Browse files Browse the repository at this point in the history
avoids platform-specific brew
  • Loading branch information
migmruiz committed Feb 27, 2018
1 parent 8b35fcd commit 9be93cc
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion checkpass.sh
Original file line number Diff line number Diff line change
@@ -1,7 +1,9 @@
#!/bin/bash

me=$(basename "$0")

command -v curl >/dev/null 2>&1 || command -v http >/dev/null 2>&1 || {
echo >&2 "I require curl or httpie but it's not installed. Install httpie with brew: 'brew install httpie'. Aborting."
echo >&2 "$me require cURL or HTTPie but none of them are installed. Aborting."
exit 1
}

Expand Down

0 comments on commit 9be93cc

Please sign in to comment.