[Dart-dev] [6588] DART/trunk/shell_scripts/shell_exit.sh: export the error code, in case the calling code wants
nancy at ucar.edu
nancy at ucar.edu
Fri Nov 8 16:27:28 MST 2013
Revision: 6588
Author: nancy
Date: 2013-11-08 16:27:28 -0700 (Fri, 08 Nov 2013)
Log Message:
-----------
export the error code, in case the calling code wants
to use it for something.
Modified Paths:
--------------
DART/trunk/shell_scripts/shell_exit.sh
-------------- next part --------------
Modified: DART/trunk/shell_scripts/shell_exit.sh
===================================================================
--- DART/trunk/shell_scripts/shell_exit.sh 2013-11-08 23:27:09 UTC (rev 6587)
+++ DART/trunk/shell_scripts/shell_exit.sh 2013-11-08 23:27:28 UTC (rev 6588)
@@ -17,13 +17,14 @@
# if you call this inline with an arg:
if [[ $# -gt 0 ]]; then
- EXITCODE=$1
+ export EXITCODE=$1
fi
# if you set an env var (the normal way to pass in
# a value if using mpi):
if [[ "$EXITCODE" == "" ]]; then
- EXITCODE=0
+ echo "incoming EXITCODE was not set, setting to 0"
+ export EXITCODE=0
fi
echo exiting with status code $EXITCODE
More information about the Dart-dev
mailing list