Skip to content

Commit

Permalink
Return bad status from mv_load.sh if the loading step fails #414
Browse files Browse the repository at this point in the history
  • Loading branch information
TatianaBurek committed Nov 11, 2022
1 parent e53f8f4 commit 9f45478
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions bin/mv_load.sh
Original file line number Diff line number Diff line change
Expand Up @@ -6,3 +6,9 @@ METDATAIO_HOME=<path_to_metdataio_home>
export PYTHONPATH=${PYTHONPATH}:$METDATAIO_HOME

$PYTHON_ENV/bin/python $METDATAIO_HOME/METdbLoad/ush/met_db_load.py $@
CODE=$?
if [ $CODE -ne 0 ]
then
echo "Process finished with exit code $CODE"
fi
exit $CODE

0 comments on commit 9f45478

Please sign in to comment.