Strip extra '-' from md5sum output when creating GCE projects

pull/6/head
James Davies 2014-11-12 17:04:01 +10:00
parent 945339362f
commit ff5a425b67
1 changed files with 1 additions and 1 deletions

View File

@ -106,7 +106,7 @@ function upload-server-tars() {
if which md5 > /dev/null 2>&1; then
project_hash=$(md5 -q -s "$PROJECT")
else
project_hash=$(echo -n "$PROJECT" | md5sum)
project_hash=$(echo -n "$PROJECT" | md5sum | awk '{ print $1 }')
fi
project_hash=${project_hash:0:5}