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
if [ $STAGE_CNT -eq $STAGE ]; then
echo "======= STAGE $STAGE: Upgrading live packages ======="
smart-live-rebuild
[ 0 -ne $? ] && echo "Stage $STAGE: Upgrading live packages failed ;-( =======" && exit $STAGE
if [ `which smart-live-rebuild 2>/dev/null` ]; then
echo "======= STAGE $STAGE: Upgrading live packages ======="
smart-live-rebuild
[ 0 -ne $? ] && echo "Stage $STAGE: Upgrading live packages failed ;-( =======" && exit $STAGE
fi
let STAGE++
let STAGE++
fi
let STAGE_CNT++