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:
parent
df94cf3900
commit
5282993562
7
.gitignore
vendored
7
.gitignore
vendored
@ -41,3 +41,10 @@ luac.out
|
||||
*.hex
|
||||
|
||||
|
||||
# ---> minetest skins working dir scripts
|
||||
*.json.*
|
||||
*/*.json.*
|
||||
*.json*
|
||||
*/*.json*
|
||||
*.json*
|
||||
*/*.json*
|
||||
|
@ -47,6 +47,8 @@ for json in data["skins"]:
|
||||
name = str(json["name"])
|
||||
author = str(json["author"])
|
||||
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")
|
||||
if ffil != "n":
|
||||
file.write("name = \"" + name + "\"\n" + "author = \"" + author + "\"\n" + "license = \"" + license + "\"\n" + "comment = \"" + license + "\"\n")
|
||||
|
Loading…
x
Reference in New Issue
Block a user