]> git.plutz.net Git - invoices/commitdiff
omit empty record lines (again)
authorPaul Hänsch <paul@plutz.net>
Mon, 25 Jul 2022 12:34:33 +0000 (14:34 +0200)
committerPaul Hänsch <paul@plutz.net>
Mon, 25 Jul 2022 12:34:33 +0000 (14:34 +0200)
invoices.sh

index b99d8f2431b4a9b6e0b465acd3992b4a34f24794..9ed6dfa56388fb2822d3c4129b2212e9c2ae12ac 100755 (executable)
@@ -276,7 +276,7 @@ update_invoice(){
         printf 'time=%s        work=%s hours=%s\n' \
           "$(POST time $n |STRING)" "$(POST work $n |STRING)" \
           "$(POST hours $n |STRING)" \
-        | grep -xvF 'time=     work=   hours=0'
+        | grep -xvF 'time=\    work=\  hours=0'
       done
     } >"invoices/$id"