Don't run smart-live-rebuild if the command not present.

This commit is contained in:
Kolan Sh 2014-08-10 21:55:39 +04:00
parent 699cd870da
commit c23138bebf
1 changed files with 6 additions and 4 deletions

View File

@ -478,11 +478,13 @@ let STAGE_CNT++
# Upgrading live packages # Upgrading live packages
if [ $STAGE_CNT -eq $STAGE ]; then if [ $STAGE_CNT -eq $STAGE ]; then
echo "======= STAGE $STAGE: Upgrading live packages =======" if [ `which smart-live-rebuild 2>/dev/null` ]; then
smart-live-rebuild echo "======= STAGE $STAGE: Upgrading live packages ======="
[ 0 -ne $? ] && echo "Stage $STAGE: Upgrading live packages failed ;-( =======" && exit $STAGE smart-live-rebuild
[ 0 -ne $? ] && echo "Stage $STAGE: Upgrading live packages failed ;-( =======" && exit $STAGE
fi
let STAGE++ let STAGE++
fi fi
let STAGE_CNT++ let STAGE_CNT++