Library of Register json to Shellscript variables
ko1nksm/shdotenv is recommended for .env
- @ShellShoccar-jpn/Parsrs
- makrj.sh
- parsrj.sh
Please place the following files.
- json2shvars.lib..sh
- lib/makrj.sh
- lib/parsrj.sh
Please set the following variables.
- _J2SVLIB
- Path to makrj.sh, parsrj.sh
# set 3rdparty Lib path
_J2SVLIB="Path/to/lib"
# include lib
_FNCFILE="${_J2SVDIR}/json2shvars.lib.sh"
. ${_FNCFILE}
# make configuration, load and delete
_configfile=$(mkConf ${_jsonfile} ${_tag})
. ${_configfile}
rm ${_configfile}
sh ./sample.sh sample.json staging _TOKEN
sh ./sample.sh sample.json production _TOKEN