]> git.plutz.net Git - shellwiki/commitdiff
suppress git putput
authorPaul Hänsch <paul@plutz.net>
Mon, 23 May 2022 10:08:46 +0000 (12:08 +0200)
committerPaul Hänsch <paul@plutz.net>
Mon, 23 May 2022 10:08:46 +0000 (12:08 +0200)
handlers/30_edit.sh

index 6dfe2e863f26d86862a5ee0d3c11183967f66052..315b5c9b996125ac70f6447a86a02242aa514fd4 100755 (executable)
@@ -37,10 +37,10 @@ elif [ "$edit_action" = update ]; then
   if [ "$(which git)" ]; then
     git -C "$_DATA" add \
       -- "pages/$edit_page/#page.md"
-    git -C "$_DATA" commit -m \
+    git -C "$_DATA" commit -qm \
       "Page # ${edit_page} # updated by user @ ${USER_NAME} @" \
       -- "pages/$edit_page/#page.md"
-  fi
+  fi 1>&2
 
   REDIRECT "${_BASE}${PATH_INFO%\[edit\]}"