diff options
author | Bryan Drewery <bryan@shatow.net> | 2021-08-30 22:43:23 +0300 |
---|---|---|
committer | Bryan Drewery <bryan@shatow.net> | 2021-08-30 22:43:43 +0300 |
commit | 70dda99cf59ef787358db77a9ccbe9ae3d83c387 (patch) | |
tree | 95e62c1f99906590436ec27902d6e814088b68eb | |
parent | 8bfaa898b32370bbfff9bf37fc833d7abc4b8b67 (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-x | src/share/poudriere/logclean.sh | 2 |
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..." |