From 4611e53e086237a8fbb22672355970e135d48b2b Mon Sep 17 00:00:00 2001 From: Sthope Date: Tue, 15 Aug 2023 13:24:34 +0200 Subject: [PATCH] Update download_themes.sh --- download_themes.sh | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/download_themes.sh b/download_themes.sh index 4d06676..dfeb9ae 100644 --- a/download_themes.sh +++ b/download_themes.sh @@ -45,6 +45,10 @@ function update_theme() { else log_info "The $local_theme files have different contents. Updating local file..." + rm -rf ./backup/ + mkdir -p ./backup + cp "$local_file" ./backup/ + # Replace the local file with the remote one mv "$remote_temp" "$local_file" || { log_error "Failed to update $local_file"; exit 1; }