minor perf idiom improvement
[tee-unique] / appendu
diff --git a/appendu b/appendu
index c7455dccdbe43be08e1b5f858f8ef2db7f8f0fcc..1d9388e8840b580327d6ae4bc8ff41ef1344602f 100755 (executable)
--- a/appendu
+++ b/appendu
@@ -56,7 +56,7 @@ Appended lines are output to the terminal.
         readsudo=
         writesudo=
     fi
-    if [[ $@ ]]; then
+    if (( $# )); then
         for x in "$@"; do
             [[ -e "$file" ]] && $readsudo grep -q "^$x$" "$file" || $writesudo tee -a "$file"<<<"$x"
         done