[FIX] script addons: check all return result

- this will give error when execute in parallel
This commit is contained in:
Mathieu Benoit 2023-01-07 00:06:41 -05:00
parent c942fa783f
commit cc438c8851
4 changed files with 38 additions and 1 deletions

View file

@ -1,4 +1,13 @@
#!/usr/bin/env bash
# "$1" code_generator_name
./script/database/db_restore.py --database "$1"
if [[ $retVal -ne 0 ]]; then
echo "Error ./script/database/db_restore.py into coverage_install_addons_restore_dev.sh"
exit 1
fi
./script/addons/coverage_install_addons_dev.sh "$1" "$1"
if [[ $retVal -ne 0 ]]; then
echo "Error ./script/addons/coverage_install_addons_dev.sh into coverage_install_addons_restore_dev.sh"
exit 1
fi

View file

@ -2,5 +2,20 @@
# "$1" module_name
# "$1" code_generator_template_name
./script/database/db_restore.py --database "$2"
retVal=$?
if [[ $retVal -ne 0 ]]; then
echo "Error ./script/database/db_restore.py into install_addons_cg_template_restore_dev.sh"
exit 1
fi
./script/addons/install_addons_dev.sh "$2" "$1"
retVal=$?
if [[ $retVal -ne 0 ]]; then
echo "Error ./script/addons/install_addons_dev.sh install module into install_addons_cg_template_restore_dev.sh"
exit 1
fi
./script/addons/install_addons_dev.sh "$2" "$2"
retVal=$?
if [[ $retVal -ne 0 ]]; then
echo "Error ./script/addons/install_addons_dev.sh install template into install_addons_cg_template_restore_dev.sh"
exit 1
fi

View file

@ -1,4 +1,8 @@
#!/usr/bin/env bash
# $1 BD NAME
# $2 file_path
./script/addons/install_addons.sh "$1" "$(<$2)"
./script/addons/install_addons.sh "$1" "$(<$2)"
if [[ $retVal -ne 0 ]]; then
echo "Error ./script/addons/install_addons.sh into install_addons_from_file.sh"
exit 1
fi

View file

@ -1,4 +1,13 @@
#!/usr/bin/env bash
# "$1" code_generator_name
./script/database/db_restore.py --database "$1"
if [[ $retVal -ne 0 ]]; then
echo "Error ./script/database/db_restore.py into install_addons_restore_dev.sh"
exit 1
fi
./script/addons/install_addons_dev.sh "$1" "$1"
if [[ $retVal -ne 0 ]]; then
echo "Error ./script/addons/install_addons_dev.sh into install_addons_restore_dev.sh"
exit 1
fi