Show "Skipping stageX" message for all skipped stages
This commit is contained in:
parent
140238dbc2
commit
744d2e553b
10
build.sh
10
build.sh
|
@ -171,12 +171,12 @@ mkdir -p ${WORK_DIR}
|
||||||
log "Begin ${BASE_DIR}"
|
log "Begin ${BASE_DIR}"
|
||||||
|
|
||||||
for STAGE_DIR in ${BASE_DIR}/stage*; do
|
for STAGE_DIR in ${BASE_DIR}/stage*; do
|
||||||
if [[ $STAGE_DIR =~ stage$((MAX_STAGE + 1))$ ]]; then
|
STAGE_DIR_NUM=$(echo $STAGE_DIR | grep -o -E "[0-9]+$")
|
||||||
echo "Skipping ${STAGE_DIR} (and remaining stages)"
|
if [[ $STAGE_DIR_NUM -le $MAX_STAGE ]]; then
|
||||||
break
|
run_stage
|
||||||
|
else
|
||||||
|
echo "Skipping ${STAGE_DIR}"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
run_stage
|
|
||||||
done
|
done
|
||||||
|
|
||||||
CLEAN=1
|
CLEAN=1
|
||||||
|
|
Loading…
Reference in New Issue
Block a user