9
0
mirror of https://github.com/Kas-tle/java2bedrock.sh.git synced 2026-01-03 21:56:13 +00:00

Don't ovwerwrite on rp unzip

This commit is contained in:
Kas-tle
2022-05-24 22:42:11 +00:00
committed by GitHub
parent 20c5a1ecbf
commit cf2485457e
2 changed files with 7 additions and 3 deletions

6
.gitignore vendored
View File

@@ -3,4 +3,8 @@ target/
config.json
pack.png
pack.mcmeta
assets/
assets/
parents.json
*.csv
*.temp
spritesheet.json

4
converter.sh Normal file → Executable file
View File

@@ -117,7 +117,7 @@ ${C_GRAY}Fallback pack URL: ${C_BLUE}${fallback_pack:=null}
# decompress our input pack
status_message process "Decompressing input pack"
unzip -q ${1}
unzip -n -q "${1}"
status_message completion "Input pack decompressed"
# setup our initial config
@@ -944,7 +944,7 @@ fi
# cleanup
status_message critical "Deleting scratch files"
rm -rf assets && rm -f pack.mcmeta && rm -f pack.png && rm -f parents.json && rm -f all.csv && rm -f pa.csv && rm -f README.md && rm -f README.txt && rm -f *.temp && rm -f spritesheet.json
rm -rf assets && rm -f pack.mcmeta && rm -f pack.png && rm -f parents.json && rm -f all.csv && rm -f pa.csv && rm -f *.temp && rm -f spritesheet.json
#status_message critical "Deleting unused entries from config"
# jq 'map_values(del(.path, .element_parent, .parent, .geyserID))' config.json | sponge config.json