From 2ebe7c78727278abffa552a8f28b08e5b7cc247d Mon Sep 17 00:00:00 2001 From: =?utf8?q?Paul=20H=C3=A4nsch?= Date: Fri, 19 Mar 2021 15:50:12 +0100 Subject: [PATCH] always discard output from git --- index.cgi | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/index.cgi b/index.cgi index 1265eb4..3ece870 100755 --- a/index.cgi +++ b/index.cgi @@ -8,7 +8,7 @@ _DATA="${_DATA:-.}" . "$_EXEC"/cgilite/file.sh . "$_EXEC"/session_lock.sh -git init "$_DATA" +git init "$_DATA" >/dev/null yield_page(){ page="$1" @@ -47,8 +47,8 @@ case ${PATH_INFO##*/} in new) newid="$(timeid)" touch "$_DATA/$newid" - git -C "$_DATA" add "$newid" - git -C "$_DATA" commit -m "new note \"${newid}\"" "$newid" + git -C "$_DATA" add "$newid" >/dev/null + git -C "$_DATA" commit -m "new note \"${newid}\"" "$newid" >/dev/null REDIRECT "./$newid" ;; esac -- 2.39.2