json artlog tool optional
This commit is contained in:
@@ -11,12 +11,15 @@ then
|
||||
exit 1
|
||||
fi
|
||||
|
||||
json=~/clients/artlog/artisanlogiciel.code/artlog_jsontools/build/json
|
||||
|
||||
json_file=$vote.json
|
||||
json_indent_file=$vote.indent.json
|
||||
echo "generating $json_indent_file"
|
||||
json=~/clients/artlog/artisanlogiciel.code/artlog_jsontools/build/json
|
||||
|
||||
if [[ -x $json ]]
|
||||
then
|
||||
json_indent_file=$vote.indent.json
|
||||
echo "generating $json_indent_file"
|
||||
$json indent=spaces:2 -- $json_file > $json_indent_file
|
||||
json=$json_file
|
||||
fi
|
||||
|
||||
$json indent=spaces:2 -- $json_file > $json_indent_file
|
||||
|
||||
python3 parse_sample.py $json_indent_file
|
||||
python3 parse_sample.py $json_file
|
||||
|
||||
Reference in New Issue
Block a user