From 75299be96434c62231fbfed94ecb70d73fd3eb6a Mon Sep 17 00:00:00 2001 From: Harrison Black Date: Fri, 26 Jun 2026 01:45:00 +1000 Subject: [PATCH] fix(serverLibraryCleanupPaper): Fix boolean flag always return true Test operator when passed in a string checks if the string is not empty, it does not check the expression inside, e.g. [[ "false" ]] returns true because the string is non-empty. Replace test operator with isTrue --- scripts/start-deployPaper | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/scripts/start-deployPaper b/scripts/start-deployPaper index 9907d4a3392..e96606af158 100755 --- a/scripts/start-deployPaper +++ b/scripts/start-deployPaper @@ -24,7 +24,7 @@ elif [[ $PAPER_DOWNLOAD_URL ]]; then --url="$PAPER_DOWNLOAD_URL" ) - if [[ $CLEAN_SERVER_LIBRARIES ]]; then + if isTrue $CLEAN_SERVER_LIBRARIES; then args+=(--clean-libraries) fi @@ -45,7 +45,7 @@ else args+=(--build="$PAPER_BUILD") fi - if [[ $CLEAN_SERVER_LIBRARIES ]]; then + if isTrue $CLEAN_SERVER_LIBRARIES; then args+=(--clean-libraries) fi