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
path: root/src
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:25 +0300
commit154acc1608ff2a019fec03ae67dd0e84961d87ad (patch)
tree74f7e45e89f37285cf377185efd2d72aa612370f /src
parentb63d7c8290841d14e519c7d7e4b92b410e411a2a (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
Diffstat (limited to 'src')
-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 10ff0186..14ee8d2a 100755
--- a/src/share/poudriere/logclean.sh
+++ b/src/share/poudriere/logclean.sh
@@ -332,7 +332,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..."