From bc414f08d8390325dea2fe5b89112f8884c9e798 Mon Sep 17 00:00:00 2001 From: Salt Date: Thu, 23 Jan 2020 14:32:49 -0600 Subject: [PATCH] Fix dying on what should be nonlethal errors --- ptgdp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/ptgdp b/ptgdp index e5d696b..1cc64fa 100755 --- a/ptgdp +++ b/ptgdp @@ -69,7 +69,8 @@ error() { else printf "ERROR: %s\\n" "$1" 1>&2 fi - [ -n "$2" ] && exit "${2:-1}" + [ -z "$2" ] && return + exit "${2:-1}" } has() { # Parse out all arguments and try to find them in path