Use bash ranges "{1..3}" instead of "$(seq 1 3)".

This commit is contained in:
Ryan Hitchman
2016-06-03 10:42:38 -07:00
parent 364f2da548
commit 5508e49ef5
10 changed files with 13 additions and 13 deletions

View File

@@ -86,7 +86,7 @@ function upload_version() {
fi
local -r json_file="${gcs_build_path}/started.json"
for upload_attempt in $(seq 3); do
for upload_attempt in {1..3}; do
echo "Uploading version to: ${json_file} (attempt ${upload_attempt})"
gsutil -q -h "Content-Type:application/json" cp -a "${gcs_acl}" <(
echo "{"
@@ -103,7 +103,7 @@ function upload_artifacts_and_build_result() {
local -r build_result=$1
echo -n 'Run finished at '; date -d "@${timestamp}"
for upload_attempt in $(seq 3); do
for upload_attempt in {1..3}; do
echo "Uploading to ${gcs_build_path} (attempt ${upload_attempt})"
echo "Uploading build result: ${build_result}"
gsutil -q -h "Content-Type:application/json" cp -a "${gcs_acl}" <(