Don't run smart-live-rebuild if the command not present.
This commit is contained in:
parent
699cd870da
commit
c23138bebf
|
@ -478,9 +478,11 @@ let STAGE_CNT++
|
||||||
|
|
||||||
# Upgrading live packages
|
# Upgrading live packages
|
||||||
if [ $STAGE_CNT -eq $STAGE ]; then
|
if [ $STAGE_CNT -eq $STAGE ]; then
|
||||||
|
if [ `which smart-live-rebuild 2>/dev/null` ]; then
|
||||||
echo "======= STAGE $STAGE: Upgrading live packages ======="
|
echo "======= STAGE $STAGE: Upgrading live packages ======="
|
||||||
smart-live-rebuild
|
smart-live-rebuild
|
||||||
[ 0 -ne $? ] && echo "Stage $STAGE: Upgrading live packages failed ;-( =======" && exit $STAGE
|
[ 0 -ne $? ] && echo "Stage $STAGE: Upgrading live packages failed ;-( =======" && exit $STAGE
|
||||||
|
fi
|
||||||
|
|
||||||
let STAGE++
|
let STAGE++
|
||||||
fi
|
fi
|
||||||
|
|
Loading…
Reference in New Issue