mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-07-26 21:17:23 +00:00
Strip extra '-' from md5sum output when creating GCE projects
This commit is contained in:
parent
945339362f
commit
ff5a425b67
@ -106,7 +106,7 @@ function upload-server-tars() {
|
|||||||
if which md5 > /dev/null 2>&1; then
|
if which md5 > /dev/null 2>&1; then
|
||||||
project_hash=$(md5 -q -s "$PROJECT")
|
project_hash=$(md5 -q -s "$PROJECT")
|
||||||
else
|
else
|
||||||
project_hash=$(echo -n "$PROJECT" | md5sum)
|
project_hash=$(echo -n "$PROJECT" | md5sum | awk '{ print $1 }')
|
||||||
fi
|
fi
|
||||||
project_hash=${project_hash:0:5}
|
project_hash=${project_hash:0:5}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user