fix bug, exited instead of return
[tee-unique] / appendu-function
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