small bug fix
[log-quiet] / log-once
index 56961f92f7bcae812e4ebd75daf0bc5e83623916..233bc0f1deaeff23e2ac9822e2658ad4dc498fe3 100755 (executable)
--- a/log-once
+++ b/log-once
@@ -65,7 +65,7 @@ state in the same directory.
         done
     fi
     glob="$c[0-9]*"
-    file=($glob); [[ $glob != $file ]] || file=
+    file=($glob); [[ $file != "$glob" ]] || file=
     if $log; then
         out=append
         if [[ $file ]]; then