small bug fix
authorIan Kelling <ian@iankelling.org>
Thu, 13 Apr 2017 10:00:03 +0000 (03:00 -0700)
committerIan Kelling <ian@iankelling.org>
Thu, 13 Apr 2017 10:00:03 +0000 (03:00 -0700)
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