mirror of
https://github.com/flatcar/scripts.git
synced 2025-08-08 05:26:58 +02:00
Exit cleanly if nothing to mark
TEST=Ran cros_mark_all_as_stable with packages and without packages to mark and had them both succeed with exit code 0. BUG=5486 Review URL: http://codereview.chromium.org/3179004
This commit is contained in:
parent
71fa14b024
commit
cf7e8ff5b7
@ -80,9 +80,13 @@ for package in ${PACKAGES}; do
|
|||||||
fi
|
fi
|
||||||
done
|
done
|
||||||
|
|
||||||
info "Candidate package list ${PACKAGE_LIST}"
|
if [ -n "${PACKAGE_LIST}" ] ; then
|
||||||
info "With commit id list ${COMMIT_ID_LIST}"
|
info "Candidate package list ${PACKAGE_LIST}"
|
||||||
|
info "With commit id list ${COMMIT_ID_LIST}"
|
||||||
|
|
||||||
./cros_mark_as_stable --board ${FLAGS_board} -p "${PACKAGE_LIST}" \
|
./cros_mark_as_stable --board ${FLAGS_board} -p "${PACKAGE_LIST}" \
|
||||||
-i "${COMMIT_ID_LIST}" -t ${FLAGS_tracking_branch} commit || \
|
-i "${COMMIT_ID_LIST}" -t ${FLAGS_tracking_branch} commit || \
|
||||||
die "Could not mark all packages as stable"
|
die "Could not mark all packages as stable"
|
||||||
|
else
|
||||||
|
info "No candidate packages to be marked"
|
||||||
|
fi
|
||||||
|
Loading…
Reference in New Issue
Block a user