diff options
author | Daniel Baumann <mail@daniel-baumann.ch> | 2021-12-31 09:11:10 +0000 |
---|---|---|
committer | Daniel Baumann <mail@daniel-baumann.ch> | 2021-12-31 09:11:10 +0000 |
commit | ea4db06660a2e0c81550f228c948cd2d38c7182d (patch) | |
tree | bfe354d5c7e5127d01570ac968e20dc50d8b621e /git | |
parent | Adding reference to dehydrated.log in dehydrated-cron manpage. (diff) | |
download | service-tools-ea4db06660a2e0c81550f228c948cd2d38c7182d.tar.xz service-tools-ea4db06660a2e0c81550f228c948cd2d38c7182d.zip |
Simplifying quiet output handling in git-repo-repack.
Signed-off-by: Daniel Baumann <mail@daniel-baumann.ch>
Diffstat (limited to '')
-rwxr-xr-x | git/bin/git-repo-repack | 13 |
1 files 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 |