Fix dying on what should be nonlethal errors
This commit is contained in:
parent
23d388c141
commit
bc414f08d8
3
ptgdp
3
ptgdp
@ -69,7 +69,8 @@ error() {
|
|||||||
else
|
else
|
||||||
printf "ERROR: %s\\n" "$1" 1>&2
|
printf "ERROR: %s\\n" "$1" 1>&2
|
||||||
fi
|
fi
|
||||||
[ -n "$2" ] && exit "${2:-1}"
|
[ -z "$2" ] && return
|
||||||
|
exit "${2:-1}"
|
||||||
}
|
}
|
||||||
has() {
|
has() {
|
||||||
# Parse out all arguments and try to find them in path
|
# Parse out all arguments and try to find them in path
|
||||||
|
Loading…
Reference in New Issue
Block a user