summaryrefslogtreecommitdiffstats
path: root/tools/build_snapshots.sh
diff options
context:
space:
mode:
Diffstat (limited to 'tools/build_snapshots.sh')
-rwxr-xr-xtools/build_snapshots.sh12
1 files changed, 6 insertions, 6 deletions
diff --git a/tools/build_snapshots.sh b/tools/build_snapshots.sh
index 478289b..eee7eb3 100755
--- a/tools/build_snapshots.sh
+++ b/tools/build_snapshots.sh
@@ -56,7 +56,7 @@ usage() {
echo " -n: Do not build images, only core pkg repo"
echo " -p: Update poudriere repo"
echo " -r: Do not reset local changes"
- echo " -u: Do not upload snapshots"
+ echo " -U: Upload snapshots"
}
export BUILDER_TOOLS=$(realpath $(dirname ${0}))
@@ -64,7 +64,7 @@ export BUILDER_ROOT=$(realpath "${BUILDER_TOOLS}/..")
NO_IMAGES=""
NO_RESET=""
-NO_UPLOAD=""
+UPLOAD=""
LOOPED_SNAPSHOTS=""
POUDRIERE_SNAPSHOTS=""
@@ -84,7 +84,7 @@ while getopts lnpru opt; do
NO_RESET=1
;;
u)
- NO_UPLOAD="-u"
+ UPLOAD="-U"
;;
*)
usage
@@ -108,7 +108,7 @@ export COUNTER=0
export _sleeping=0
snapshot_update_status() {
- ${BUILDER_ROOT}/build.sh ${NO_UPLOAD} ${POUDRIERE_SNAPSHOTS} \
+ ${BUILDER_ROOT}/build.sh ${UPLOAD} ${POUDRIERE_SNAPSHOTS} \
--snapshot-update-status "$*"
}
@@ -221,7 +221,7 @@ while [ /bin/true ]; do
if [ $rc -eq 0 ]; then
exec_and_update_status \
- ${BUILDER_ROOT}/build.sh ${NO_UPLOAD} \
+ ${BUILDER_ROOT}/build.sh ${UPLOAD} \
--update-pkg-repo
rc=$?
fi
@@ -232,7 +232,7 @@ while [ /bin/true ]; do
if [ $rc -eq 0 ]; then
exec_and_update_status \
- ${BUILDER_ROOT}/build.sh ${NO_UPLOAD} --flash-size \
+ ${BUILDER_ROOT}/build.sh ${UPLOAD} --flash-size \
'2g 4g' --snapshots \
${IMAGES}
rc=$?
OpenPOWER on IntegriCloud