From 4287f264f70eca7844522895d8213f22b00712f3 Mon Sep 17 00:00:00 2001 From: Christoffer Date: Wed, 19 Dec 2018 14:08:29 +0000 Subject: [PATCH] git ops: add quiet switch for git push pull operations. --- lib/functions.php | 4 ++-- update.sh | 6 +++--- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/lib/functions.php b/lib/functions.php index 206a163..80c346b 100755 --- a/lib/functions.php +++ b/lib/functions.php @@ -8,7 +8,7 @@ */ function fetchUpstreamMaster () { - echo shell_exec ("/usr/bin/git -C ../registry/ pull upstream master:master 2>&1"); + echo shell_exec ("/usr/bin/git -C ../registry/ pull upstream master:master --quiet 2>&1"); } /* @@ -19,7 +19,7 @@ function fetchUpstreamMaster () */ function checkoutMaster () { - echo shell_exec ("/usr/bin/git -C ../registry/ o master 2>&1"); + echo shell_exec ("/usr/bin/git -C ../registry/ o master --quiet 2>&1"); } /* diff --git a/update.sh b/update.sh index b156c62..07f460b 100755 --- a/update.sh +++ b/update.sh @@ -3,8 +3,8 @@ ISO_DATE=$(date -u +"%Y-%m-%dT%H:%M:%SZ") # Commit latest version of ROA files -git add roa/* -git commit roa/* -m "Updated ROA files - $ISO_DATE" +git add roa/* --quiet +git commit roa/* -m "Updated ROA files - $ISO_DATE" --quiet # Push repository to every remote configured -for REMOTE in $(git remote | egrep -v upstream | paste -sd " " -) ; do git push $REMOTE master:master ; done +for REMOTE in $(git remote | egrep -v upstream | paste -sd " " -) ; do git push $REMOTE master:master --quiet ; done