Use basename instead of full path name
This commit is contained in:
parent
e44db62e10
commit
0d88ff8eb6
2 changed files with 5 additions and 4 deletions
|
@ -25,6 +25,7 @@ fi
|
|||
FAIL=0
|
||||
for SRV in $SRV_LIST
|
||||
do
|
||||
echo -e "\e[1;33m>>>\e[0m $ACTION on $SRV" | tee -a "$LOG"
|
||||
if [ "$ACTION" == "update" ]
|
||||
then
|
||||
ssh root@$SRV "make -C liblerdorf update upgrade"
|
||||
|
@ -39,10 +40,9 @@ do
|
|||
echo -e "\e[1;31m>>>\e[0m $ACTION fails on $SRV" | tee -a "$LOG"
|
||||
FAIL=1
|
||||
fi
|
||||
echo
|
||||
done
|
||||
|
||||
echo
|
||||
|
||||
cat "$LOG"
|
||||
|
||||
exit $FAIL
|
Reference in a new issue