format json script
Signed-off-by: crueter <crueter@eden-emu.dev>
This commit is contained in:
parent
83730cd4c1
commit
13437a360f
4 changed files with 17 additions and 9 deletions
|
@ -1,4 +1,4 @@
|
||||||
#!/bin/sh
|
#!/bin/sh
|
||||||
|
|
||||||
SUM=`wget -q https://github.com/$1/archive/$2.zip -O - | sha512sum`
|
SUM=$(wget -q https://github.com/$1/archive/$2.zip -O - | sha512sum)
|
||||||
echo "$SUM" | cut -d " " -f1
|
echo "$SUM" | cut -d " " -f1
|
||||||
|
|
8
tools/cpm/format-json.sh
Executable file
8
tools/cpm/format-json.sh
Executable file
|
@ -0,0 +1,8 @@
|
||||||
|
#!/bin/sh -e
|
||||||
|
|
||||||
|
FILES=$(find . src -maxdepth 3 -name cpmfile.json)
|
||||||
|
|
||||||
|
for file in $FILES; do
|
||||||
|
jq --indent 4 < $file > $file.new
|
||||||
|
mv $file.new $file
|
||||||
|
done
|
Loading…
Add table
Add a link
Reference in a new issue