Made the script absolute

It always restores to the same folder
This commit is contained in:
Chromachine 2018-10-12 23:08:16 +00:00
parent c2af8772d6
commit 058d51c738
No known key found for this signature in database
GPG key ID: E3A2A1CAA522AE6E

View file

@ -12,7 +12,7 @@ for X in $(seq $X1 $X2); do
for Z in $(seq $Z1 $Z2); do
echo "Unzipping region ($X,$Z)..." >&2
#unzip "$1" "world/region/r.$X.$Z.mca" -d backupextract
unzip -j -u "$1" "world/region/r.$X.$Z.mca" -d backupextract # BACKUP_world/region # -j: Don't retain folder structure
unzip -j -u "$1" "world/region/r.$X.$Z.mca" -d /minecraft/main/BACKUP_world/region # -j: Don't retain folder structure
done
done
echo "Backup restoration finished!" >&2