Add support for 6.0.23
This commit is contained in:
11
fields/cleanupjson.sh
Normal file
11
fields/cleanupjson.sh
Normal file
@@ -0,0 +1,11 @@
|
||||
#!/usr/bin/env bash
|
||||
|
||||
ver="$1"
|
||||
keys=$(jq -r keys[] "$ver/Setting.json")
|
||||
|
||||
while IFS= read -r key; do
|
||||
readarray -td ' ' arr <<< "${key//_/ }"
|
||||
fn=$(printf %s "${arr[@]^}")
|
||||
echo "... $key $fn ..."
|
||||
jq ".$key" "$ver/Setting.json" > "$ver/Setting$fn.json"
|
||||
done <<< "$keys"
|
||||
Reference in New Issue
Block a user