use basename for SELF; FAIL rather than FAILED

This commit is contained in:
George Danchev 2011-06-27 15:51:13 +00:00
parent 2a6e8d45bd
commit cb3a532165
1 changed files with 2 additions and 2 deletions

View File

@ -2,7 +2,7 @@
set -e
SELF=`echo $0|sed -e 's/\.\///'`
SELF=$(basename "$0")
CLOG1=log.$SELF.1
CLOG2=log.$SELF.2
@ -45,7 +45,7 @@ for s in `ls | grep ^releng_ | grep -v ${SELF} | sort`; do
printf "done in ${TS} sec. ok."
;;
*)
printf "done in ${TS} sec. FAILED WITH EXIT CODE: $RET;"
printf "done in ${TS} sec. FAIL. EXIT CODE: $RET;"
;;
esac
set -e