Sample Upgrade Script (cont.)
# check if we can get to the release area
ReleaseArea=$ReleaseBase/$InstallClass/$MachType
if [ ! -d "$ReleaseArea" ]
# unable to get to the release area, display error and send email,
/bin/echo "*******************************************************"
/bin/echo "* Problem Detected by UpdateClearCase *"
/bin/echo "* Unable to get to the release location: $ReleaseArea *"
/bin/echo "* skipping update and sending email *"
/bin/echo "*******************************************************"
( /bin/echo "UpdateClearCase: Problem Detected" ; \
/bin/echo "Machine Name: $MachName" ; \
/bin/echo "Problem Description: Unable to get to the release location: $ReleaseArea" ) | \
Mail -s "UpdateClearCase Problem Detected" $MailDest