Skip to content
Snippets Groups Projects
Verified Commit 8af79bde authored by Tadej Novak's avatar Tadej Novak
Browse files

Return status code from ThinCAWrapper.sh

parent eade5f04
No related branches found
No related tags found
No related merge requests found
...@@ -28,7 +28,7 @@ done ...@@ -28,7 +28,7 @@ done
#Check if we got a top-level script #Check if we got a top-level script
#Improve: Check if there is exactly one! #Improve: Check if there is exactly one!
if [ -z ${topscriptfile} ] if [ -z "$topscriptfile" ]
then then
echo "ERROR: No top-level python script given" echo "ERROR: No top-level python script given"
exit 1 exit 1
...@@ -60,7 +60,7 @@ do ...@@ -60,7 +60,7 @@ do
done done
if [[ -z $topscript ]]; if [ -z "$topscript" ];
then then
echo "Could not find python script $topscriptfile" echo "Could not find python script $topscriptfile"
exit 1 exit 1
...@@ -68,6 +68,7 @@ fi ...@@ -68,6 +68,7 @@ fi
#Finally: Execute it! #Finally: Execute it!
python $topscript $scriptargs python $topscript $scriptargs
status=$?
if [ ! $status -eq 0 ]; then
exit $status
fi
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment