mirror of
https://github.com/standardebooks/web.git
synced 2025-07-14 18:42:00 -04:00
Use -n instead of ! -z
This commit is contained in:
parent
d41dd0665f
commit
4e8f0b4a6d
1 changed files with 1 additions and 1 deletions
|
@ -12,7 +12,7 @@ EOF
|
|||
exit
|
||||
}
|
||||
die(){ printf "\033[0;7;31mError:\033[0m %s\n" "${1}" 1>&2; exit 1; }
|
||||
require(){ command -v "$1" > /dev/null 2>&1 || { suggestion=""; if [ ! -z "$2" ]; then suggestion=" $2"; fi; die "$1 is not installed.${suggestion}"; } }
|
||||
require(){ command -v "$1" > /dev/null 2>&1 || { suggestion=""; if [ -n "$2" ]; then suggestion=" $2"; fi; die "$1 is not installed.${suggestion}"; } }
|
||||
if [ $# -eq 1 ]; then if [ "$1" = "--help" ] || [ "$1" = "-h" ]; then usage; fi fi
|
||||
# End boilerplate
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue