0
0
mirror of https://github.com/tj/n.git synced 2024-11-22 02:57:32 +01:00
This commit is contained in:
Tj Holowaychuk 2011-01-05 06:03:31 -08:00
parent 1667a31d61
commit d3ac35d2f2

12
bin/n
View File

@ -14,6 +14,10 @@ which wget > /dev/null && GET="wget -q -O-"
# curl support
which curl > /dev/null && GET="curl -# -L"
# Ensure we have curl or wget
test -z "$GET" && abort "curl or wget required"
#
# Log the given <msg ...>
#
@ -22,6 +26,14 @@ log() {
echo "... $@"
}
#
# Exit with the given <msg ...>
#
abort() {
echo "Error: $@" && exit 1
}
#
# Output usage information.
#