Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/freebsd/poudriere.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBryan Drewery <bryan@shatow.net>2021-08-30 22:43:23 +0300
committerBryan Drewery <bryan@shatow.net>2021-08-30 22:43:43 +0300
commit70dda99cf59ef787358db77a9ccbe9ae3d83c387 (patch)
tree95e62c1f99906590436ec27902d6e814088b68eb
parent8bfaa898b32370bbfff9bf37fc833d7abc4b8b67 (diff)
logclean: Don't show dry-run messages when not in dry mode.
Fixes fa8d870936a54dace ("logclean -n: Give more hints on what would be done") Fixes #913 (cherry picked from commit 154acc1608ff2a019fec03ae67dd0e84961d87ad)
-rwxr-xr-xsrc/share/poudriere/logclean.sh2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/share/poudriere/logclean.sh b/src/share/poudriere/logclean.sh
index 6e536644..aafe711b 100755
--- a/src/share/poudriere/logclean.sh
+++ b/src/share/poudriere/logclean.sh
@@ -329,7 +329,7 @@ if [ ${logs_deleted} -eq 1 ]; then
log_path_top="${log_top}"
build_top_json || :
echo " done"
-else
+elif [ "${DRY_RUN}" -eq 1 ]; then
msg "[Dry Run] Would fix latest symlinks..."
msg "[Dry Run] Would fix latest-done symlinks..."
msg "[Dry Run] Would fix latest-per-pkg links..."