From 2f61cadb7595795e9e83451ca15b7ba6c044ddf0 Mon Sep 17 00:00:00 2001 From: einhornimmond Date: Thu, 8 May 2025 13:06:48 +0200 Subject: [PATCH] ignore warning and errors from yarn /tmp delete --- deployment/bare_metal/start.sh | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/deployment/bare_metal/start.sh b/deployment/bare_metal/start.sh index 9115ba808..d3a703e3a 100755 --- a/deployment/bare_metal/start.sh +++ b/deployment/bare_metal/start.sh @@ -154,8 +154,8 @@ log_error() { } log_warn() { local message="$1" - echo -e "\e[33m$message\e[0m" > /dev/tty # yellow in console - echo "$message" >> "$UPDATE_HTML" # yellow in html + echo -e "\e[33m$message\e[0m" > /dev/tty # orange in console + echo "$message" >> "$UPDATE_HTML" # orange in html } log_success() { local message="$1" @@ -255,7 +255,8 @@ MODULES=( if [ "$FAST_MODE" = false ] ; then log_step 'Clean tmp, bun and yarn cache' # Clean tmp folder - remove yarn files - find /tmp -name "yarn--*" -exec rm -r {} \; + # ignore error/warnings, we want only to remove all yarn files + find /tmp -name "yarn--*" -exec rm -r {} \; || true # Clean user cache folder rm -Rf ~/.cache/yarn # Clean bun cache