X-Git-Url: https://git.plutz.net/?a=blobdiff_plain;f=invoices.sh;h=c21fe4fe3b597c8cf42b31ca570d1813ea653498;hb=61d4c0246fddb3af0cd3287e77814c867f67f80f;hp=93292cbee74a31f0b69613940c8a4bc72b215712;hpb=5907162874f51038707877e44eea629e15d9224a;p=invoices diff --git a/invoices.sh b/invoices.sh index 93292cb..c21fe4f 100755 --- a/invoices.sh +++ b/invoices.sh @@ -238,6 +238,11 @@ update_invoice(){ | grep -xvF 'time= work= hours=0' done } >"invoices/$id" + + [ -d .git ] && { + git add "invoices/$id" + git commit -m 'Update invoice info for "'"$(POST number)"'"' -- "invoices/$id" + } >/dev/null fi if [ "$(POST genpdf)" ]; then read -r sender client date x<"invoices/$id"