mirror of
https://github.com/alexbelgium/hassio-addons.git
synced 2026-06-02 05:44:03 +02:00
Create sortjson.sh
This commit is contained in:
5
.tools/sortjson.sh
Normal file
5
.tools/sortjson.sh
Normal file
@@ -0,0 +1,5 @@
|
|||||||
|
#!/bin/bash
|
||||||
|
|
||||||
|
for files in */*.json; do
|
||||||
|
/./c/Tmp/jq-win64.exe --sort-keys . "$files" > config2.json && cat config2.json > "$files" && rm config2.json
|
||||||
|
done
|
||||||
Reference in New Issue
Block a user