Handle 0 incrementals

This commit is contained in:
Dan Stillman 2024-08-09 00:17:56 -04:00
parent c8fbad4be7
commit 4816eed0f4
2 changed files with 8 additions and 6 deletions

View file

@ -114,11 +114,13 @@ do
echo "$INCREMENTALS"
echo
for from in $INCREMENTALS; do
echo "Building incremental update for $platform_name from $from to $VERSION"
"$ROOT_DIR/update-packaging/build_autoupdate.sh" -i "$from" -c "$CHANNEL" -p ${PLATFORMS:i:1} -l $VERSION
echo
done
if [ -n "$INCREMENTALS" ]; then
for from in $INCREMENTALS; do
echo "Building incremental update for $platform_name from $from to $VERSION"
"$ROOT_DIR/update-packaging/build_autoupdate.sh" -i "$from" -c "$CHANNEL" -p ${PLATFORMS:i:1} -l $VERSION
echo
done
fi
done
# Upload builds to S3

View file

@ -81,7 +81,7 @@ if [ "$VERSION" ]; then
echo $VERSION >> "$INCR_PATH"
aws s3 cp "$INCR_PATH" $S3_URL
# Show last n versions
elif [ "$NUM_VERSIONS" ]; then
elif [ "$NUM_VERSIONS" -gt 0 ]; then
# TEMP: Don't include 6.0 versions
#tail -n $NUM_VERSIONS "$INCR_PATH"
tail -n $NUM_VERSIONS "$INCR_PATH" | grep -v '^6\.0'