mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-07-28 14:07:14 +00:00
Silence some noise.
Silence benign errors in bash scripts.
This commit is contained in:
parent
e6ee45d38e
commit
d0828f4926
@ -229,7 +229,7 @@ function copy-output() {
|
|||||||
|
|
||||||
# Create a unique bucket name for releasing Kube and make sure it exists.
|
# Create a unique bucket name for releasing Kube and make sure it exists.
|
||||||
function ensure-gcs-release-bucket() {
|
function ensure-gcs-release-bucket() {
|
||||||
if which md5 > /dev/null; then
|
if which md5 > /dev/null 2>&1; then
|
||||||
HASH=$(md5 -q -s "$GCLOUD_PROJECT")
|
HASH=$(md5 -q -s "$GCLOUD_PROJECT")
|
||||||
else
|
else
|
||||||
HASH=$(echo -n "$GCLOUD_PROJECT" | md5sum)
|
HASH=$(echo -n "$GCLOUD_PROJECT" | md5sum)
|
||||||
|
@ -31,7 +31,7 @@ if [ ! -n "$PROJECT" ]; then
|
|||||||
exit 1
|
exit 1
|
||||||
fi
|
fi
|
||||||
|
|
||||||
if which md5 > /dev/null; then
|
if which md5 > /dev/null 2>&1; then
|
||||||
HASH=$(md5 -q -s $PROJECT)
|
HASH=$(md5 -q -s $PROJECT)
|
||||||
else
|
else
|
||||||
HASH=$(echo -n "$PROJECT" | md5sum)
|
HASH=$(echo -n "$PROJECT" | md5sum)
|
||||||
|
Loading…
Reference in New Issue
Block a user