summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDaniel Baumann <mail@daniel-baumann.ch>2021-12-31 09:11:10 +0000
committerDaniel Baumann <mail@daniel-baumann.ch>2021-12-31 09:11:10 +0000
commitea4db06660a2e0c81550f228c948cd2d38c7182d (patch)
treebfe354d5c7e5127d01570ac968e20dc50d8b621e
parentAdding reference to dehydrated.log in dehydrated-cron manpage. (diff)
downloadservice-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-xgit/bin/git-repo-repack13
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