1
0

dont commit the downloaded json file, filter duble quotes from bash script

* bash script writes double qoutes due bashish, remove it
This commit is contained in:
mckaygerhard 2024-04-03 21:09:46 -04:00
parent df94cf3900
commit 5282993562
2 changed files with 9 additions and 0 deletions

7
.gitignore vendored
View File

@ -41,3 +41,10 @@ luac.out
*.hex *.hex
# ---> minetest skins working dir scripts
*.json.*
*/*.json.*
*.json*
*/*.json*
*.json*
*/*.json*

View File

@ -47,6 +47,8 @@ for json in data["skins"]:
name = str(json["name"]) name = str(json["name"])
author = str(json["author"]) author = str(json["author"])
license = str(json["license"]) license = str(json["license"])
license = license.replace(' ', '-')
license = license.replace('CC-0-(1.0)', 'CC0-1.0')
file = open("../meta/character" + fsep + id + ".txt", "w") file = open("../meta/character" + fsep + id + ".txt", "w")
if ffil != "n": if ffil != "n":
file.write("name = \"" + name + "\"\n" + "author = \"" + author + "\"\n" + "license = \"" + license + "\"\n" + "comment = \"" + license + "\"\n") file.write("name = \"" + name + "\"\n" + "author = \"" + author + "\"\n" + "license = \"" + license + "\"\n" + "comment = \"" + license + "\"\n")