X-Git-Url: https://iankelling.org/git/?a=blobdiff_plain;f=appendu-function;h=4c97d7270adbd3f4af06d063682931c88f9309ca;hb=85a2296c2fd76e0efd4d09807d054b358718e199;hp=a169bd7cf680a860116d46928b442b9583baaadb;hpb=0a9b2b99289f77d803506dc168b9f69c2c5f7924;p=tee-unique diff --git a/appendu-function b/appendu-function index a169bd7..4c97d72 100644 --- a/appendu-function +++ b/appendu-function @@ -36,7 +36,7 @@ Appended lines are output to the terminal. return 1 fi - local readsudo writesudo + local readsudo writesudo x local file="$1" shift @@ -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