Update module.json structure
This commit is contained in:
parent
2472c9f3d0
commit
3bfdcc68e6
4
pack.sh
4
pack.sh
|
@ -12,7 +12,7 @@ if [ -f "src/module.json" ]
|
||||||
then
|
then
|
||||||
mod_name=`cat src/module.json | jq ".name" -r`
|
mod_name=`cat src/module.json | jq ".name" -r`
|
||||||
mod_version=`cat src/module.json | jq ".version" -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
|
else
|
||||||
echo "Moduleinfo read failed"
|
echo "Moduleinfo read failed"
|
||||||
exit 9
|
exit 9
|
||||||
|
@ -21,7 +21,7 @@ fi
|
||||||
echo "{
|
echo "{
|
||||||
\"name\":\"${mod_name}\",
|
\"name\":\"${mod_name}\",
|
||||||
\"version\":\"${mod_version}\",
|
\"version\":\"${mod_version}\",
|
||||||
\"desc\":\"${mod_desc}\",
|
\"title\":\"${mod_title}\",
|
||||||
\"hash\":\"${md5}\",
|
\"hash\":\"${md5}\",
|
||||||
}
|
}
|
||||||
" > src/module.json
|
" > src/module.json
|
||||||
|
|
Loading…
Reference in New Issue