Don't run smart-live-rebuild if the command not present.
This commit is contained in:
parent
699cd870da
commit
c23138bebf
|
@ -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++
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue