From ea4db06660a2e0c81550f228c948cd2d38c7182d Mon Sep 17 00:00:00 2001 From: Daniel Baumann Date: Fri, 31 Dec 2021 10:11:10 +0100 Subject: Simplifying quiet output handling in git-repo-repack. Signed-off-by: Daniel Baumann --- git/bin/git-repo-repack | 13 ++++++++++--- 1 file changed, 10 insertions(+), 3 deletions(-) diff --git a/git/bin/git-repo-repack b/git/bin/git-repo-repack index 58f909d..1d9d142 100755 --- a/git/bin/git-repo-repack +++ b/git/bin/git-repo-repack @@ -45,9 +45,16 @@ fi for REPOSITORY in ${REPOSITORIES} do - [ "${QUIET}" ] || echo "================================================================================" - [ "${QUIET}" ] || echo "${REPOSITORY}" - [ "${QUIET}" ] || echo "================================================================================" + if [ "${QUIET}" != "true" ] + then + +cat << EOF +================================================================================ +${REPOSITORY} +================================================================================ +EOF + + fi cd "${REPOSITORY}" git repack "${GIT_REPACK_OPTIONS}" -a -b -d -f -F -- cgit v1.2.3