versione 1.2.14 :
- aggiornati i file di configurazione, ENV e script non funzionanti., package. - corretto custom-service-worker.js con CORS - ottimizzato il server, la chiamata Load iniziale (senza promise, con async/await).
This commit is contained in:
@@ -40,7 +40,7 @@ done
|
||||
|
||||
# Array con i file da ripristinare dal sito selezionato
|
||||
restore_files=(
|
||||
"db"
|
||||
"src/db"
|
||||
"root_spec"
|
||||
"quasar.config.ts"
|
||||
"src-pwa/manifest.json"
|
||||
@@ -50,9 +50,22 @@ restore_files=(
|
||||
".env.test"
|
||||
)
|
||||
|
||||
# Ripristino
|
||||
for file in "${restore_files[@]}"; do
|
||||
[[ -e "_ALL_SITES/$site/$file" ]] && cp -Rv "_ALL_SITES/$site/$file" "../${file}"
|
||||
source_path="_ALL_SITES/$site/$file"
|
||||
destination_path="../$file"
|
||||
|
||||
if [[ -d "$source_path" ]]; then
|
||||
# Se è una directory, copia il contenuto direttamente nella destinazione
|
||||
echo "Copying directory content: $source_path -> $destination_path"
|
||||
cp -Rv "$source_path/." "$destination_path/"
|
||||
elif [[ -f "$source_path" ]]; then
|
||||
# Se è un file, copialo normalmente
|
||||
echo "Copying file: $source_path -> $destination_path"
|
||||
cp -v "$source_path" "$destination_path"
|
||||
else
|
||||
# Se il file/directory non esiste, stampa un avviso
|
||||
echo "Warning: Source path does not exist - $source_path"
|
||||
fi
|
||||
done
|
||||
|
||||
# Copia dei file pubblici
|
||||
|
||||
Reference in New Issue
Block a user