Update download_themes.sh
This commit is contained in:
parent
e01b6d8e4a
commit
4611e53e08
@ -45,6 +45,10 @@ function update_theme() {
|
|||||||
else
|
else
|
||||||
log_info "The $local_theme files have different contents. Updating local file..."
|
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
|
# Replace the local file with the remote one
|
||||||
mv "$remote_temp" "$local_file" || { log_error "Failed to update $local_file"; exit 1; }
|
mv "$remote_temp" "$local_file" || { log_error "Failed to update $local_file"; exit 1; }
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user