fix bug, exited instead of return
authorIan Kelling <ian@iankelling.org>
Wed, 18 Jun 2014 23:35:04 +0000 (16:35 -0700)
committerIan Kelling <ian@iankelling.org>
Wed, 18 Jun 2014 23:35:04 +0000 (16:35 -0700)
appendu
appendu-function

diff --git a/appendu b/appendu
index 1d9388e8840b580327d6ae4bc8ff41ef1344602f..43e2e8737aaffabf42ecc47005e395094bfe6a61 100755 (executable)
--- 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
index a169bd7cf680a860116d46928b442b9583baaadb..9dc9b5a601c604f599eae097f22814db3dd0959c 100644 (file)
@@ -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