Update module.json structure

This commit is contained in:
Pavel Dmitriev 2022-05-01 14:56:01 +03:00
parent 2472c9f3d0
commit 3bfdcc68e6
1 changed files with 2 additions and 2 deletions

View File

@ -12,7 +12,7 @@ if [ -f "src/module.json" ]
then
mod_name=`cat src/module.json | jq ".name" -r`
mod_version=`cat src/module.json | jq ".version" -r`
mod_desc=`cat src/module.json | jq ".desc" -r`
mod_title=`cat src/module.json | jq ".title" -r`
else
echo "Moduleinfo read failed"
exit 9
@ -21,7 +21,7 @@ fi
echo "{
\"name\":\"${mod_name}\",
\"version\":\"${mod_version}\",
\"desc\":\"${mod_desc}\",
\"title\":\"${mod_title}\",
\"hash\":\"${md5}\",
}
" > src/module.json