From ce574c29ed77ba8f9dfaf1ef23235c9d2c0c89b3 Mon Sep 17 00:00:00 2001 From: GenZmeY Date: Mon, 24 Jan 2022 07:17:19 +0300 Subject: [PATCH] clean empty directories --- builder | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) diff --git a/builder b/builder index 22904ab..2dce0fd 100644 --- a/builder +++ b/builder @@ -272,7 +272,9 @@ function compile () do if compiled; then kill "$PID"; break; fi sleep 1 - done + done + + find "$KFUnpublish" -type d -empty -delete restore_kfeditorconf } @@ -339,7 +341,7 @@ function brew () publish_common brew_cleanup - find "$KFPublishBrewedPC" -type d -empty -delete + find "$KFPublish" -type d -empty -delete } function brew_manual () @@ -369,7 +371,7 @@ function brew_manual () publish_common - find "$KFPublishBrewedPC" -type d -empty -delete + find "$KFPublish" -type d -empty -delete } # Uploading without brewing @@ -385,7 +387,7 @@ function publish_unpublished () publish_common - find "$KFPublishBrewedPC" -type d -empty -delete + find "$KFPublish" -type d -empty -delete } function upload () @@ -403,7 +405,7 @@ function upload () publish_unpublished fi - find "$KFPublishBrewedPC" -type d -empty -delete + find "$KFPublish" -type d -empty -delete PreparedWsDir=$(mktemp -d -u -p "$KFDoc")