Index: alarmMapping.sh =================================================================== diff -u -r9ae3b0d6624904693329309aaf8ff02784c17184 -raa7591d9f61f5d8d5a2b3604d4c37d6cea829700 --- alarmMapping.sh (.../alarmMapping.sh) (revision 9ae3b0d6624904693329309aaf8ff02784c17184) +++ alarmMapping.sh (.../alarmMapping.sh) (revision aa7591d9f61f5d8d5a2b3604d4c37d6cea829700) @@ -17,9 +17,19 @@ # update common repo echo "update the common repo" cd common -git pull +if ( test -d .git ); then + git pull +fi cd .. +if ! ( test -x ../scripts/build/alarmMapping ); then + echo "Alarm Mapping tool doesn't exist. Continues by assuming the Alarm Table is updated." + # if return anything other than 0 build stops running next steps. + # it is ok for the dev_test to not to have the script folder and + # common folder not as a repository. + exit 0 +fi + # update the alarm messaging echo "update the alarm message mapping" ../scripts/build/alarmMapping \ @@ -30,3 +40,4 @@ echo "move the Alarm code mapping to current location(./)" mv ../scripts/build/AlarmMapping.csv . +