Skip to content

Commit

Permalink
Adding check for executable before starting run script under Linux
Browse files Browse the repository at this point in the history
  • Loading branch information
zcobell committed May 21, 2016
1 parent 4bd116a commit db70784
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion src/MetOceanViewer
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,13 @@

export LD_LIBRARY_PATH=/opt/MetOceanViewer/lib:$LD_LIBRARY_PATH

/opt/MetOceanViewer/bin/MetOcean_Viewer
mov_exe=/opt/MetOceanViewer/bin/MetOcean_Viewer

if [ -e $mov_exe ] ; then
$mov_exe
else
echo "ERROR: The MetOceanViewer executable does not exist."
exit 1
fi

exit $?

0 comments on commit db70784

Please sign in to comment.