iankelling.org
/
git
/
tee-unique
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
fix using non-local variable
[tee-unique]
/
appendu
diff --git
a/appendu
b/appendu
index 1d9388e8840b580327d6ae4bc8ff41ef1344602f..7854aee9b1c324de99f907a429e62f465a63e9b8 100755
(executable)
--- a/
appendu
+++ b/
appendu
@@
-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