From 0b9edb4236585a0ad6ce56af9a9bd35e21b0d75d Mon Sep 17 00:00:00 2001 From: Ian Kelling Date: Wed, 18 Jun 2014 16:35:04 -0700 Subject: [PATCH] fix bug, exited instead of return --- appendu | 2 +- appendu-function | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) 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 -- 2.30.2