Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
K
k3s
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Jacklull
k3s
Commits
fbc28fd1
Unverified
Commit
fbc28fd1
authored
Apr 08, 2019
by
Kubernetes Prow Robot
Committed by
GitHub
Apr 08, 2019
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #76280 from xichengliudui/fixshellcheck0409
Fix shellcheck failures in update-workspace-mirror.sh
parents
fa9b36de
961f1621
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
4 deletions
+3
-4
.shellcheck_failures
hack/.shellcheck_failures
+0
-1
update-workspace-mirror.sh
hack/update-workspace-mirror.sh
+3
-3
No files found.
hack/.shellcheck_failures
View file @
fbc28fd1
...
@@ -53,7 +53,6 @@
...
@@ -53,7 +53,6 @@
./hack/update-translations.sh
./hack/update-translations.sh
./hack/update-vendor-licenses.sh
./hack/update-vendor-licenses.sh
./hack/update-vendor.sh
./hack/update-vendor.sh
./hack/update-workspace-mirror.sh
./hack/verify-api-groups.sh
./hack/verify-api-groups.sh
./hack/verify-boilerplate.sh
./hack/verify-boilerplate.sh
./hack/verify-cli-conventions.sh
./hack/verify-cli-conventions.sh
...
...
hack/update-workspace-mirror.sh
View file @
fbc28fd1
...
@@ -29,8 +29,8 @@ BUCKET="gs://k8s-bazel-cache"
...
@@ -29,8 +29,8 @@ BUCKET="gs://k8s-bazel-cache"
gsutil acl get
"
${
BUCKET
}
"
>
/dev/null
gsutil acl get
"
${
BUCKET
}
"
>
/dev/null
tmpfile
=
$(
mktemp
bazel_workspace_mirror.XXXXXX
)
tmpfile
=
$(
mktemp
bazel_workspace_mirror.XXXXXX
)
trap
"rm
${
tmpfile
}
"
EXIT
trap
'rm ${tmpfile}'
EXIT
cat
"
$1
"
|
while
read
url
;
do
while
read
-r
url
;
do
echo
"
${
url
}
"
echo
"
${
url
}
"
if
gsutil
ls
"
${
BUCKET
}
/
${
url
}
"
&> /dev/null
;
then
if
gsutil
ls
"
${
BUCKET
}
/
${
url
}
"
&> /dev/null
;
then
echo
present
echo
present
...
@@ -40,4 +40,4 @@ cat "$1" | while read url; do
...
@@ -40,4 +40,4 @@ cat "$1" | while read url; do
gsutil
cp
-a
public-read
"
${
tmpfile
}
"
"
${
BUCKET
}
/
${
url
}
"
gsutil
cp
-a
public-read
"
${
tmpfile
}
"
"
${
BUCKET
}
/
${
url
}
"
fi
fi
fi
fi
done
done
<
"
$1
"
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment