From: Ian Kelling Date: Wed, 18 Jun 2014 23:35:04 +0000 (-0700) Subject: fix bug, exited instead of return X-Git-Url: https://iankelling.org/git/?p=tee-unique;a=commitdiff_plain;h=0b9edb4236585a0ad6ce56af9a9bd35e21b0d75d fix bug, exited instead of return --- diff --git a/appendu b/appendu index 1d9388e..43e2e87 100755 --- a/appendu +++ b/appendu @@ -49,7 +49,7 @@ Appended lines are output to the terminal. [[ ! -w $dir ]] && writesudo=sudo else echo "appendu error: $dir does not exist" - exit 1 + return 1 fi fi if ! $dosudo; then diff --git a/appendu-function b/appendu-function index a169bd7..9dc9b5a 100644 --- a/appendu-function +++ b/appendu-function @@ -49,7 +49,7 @@ Appended lines are output to the terminal. [[ ! -w $dir ]] && writesudo=sudo else echo "appendu error: $dir does not exist" - exit 1 + return 1 fi fi if ! $dosudo; then