format json script

Signed-off-by: crueter <crueter@eden-emu.dev>
This commit is contained in:
crueter 2025-10-03 14:39:58 -04:00
parent f4f3425d86
commit 8cbb3597dc
Signed by: crueter
GPG key ID: 425ACD2D4830EBC6
4 changed files with 21 additions and 13 deletions

View file

@ -1,4 +1,4 @@
#!/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

8
tools/cpm/format-json.sh Executable file
View 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