Remove ~/repo before moving Cloud SDK components there

This commit is contained in:
Isaac Hollander McCreery 2015-12-17 10:09:47 -08:00
parent a45c87864e
commit 375f4df7b7

View File

@ -1306,6 +1306,7 @@ fi
# at HEAD, release candidate.
if [[ ! -z "${CLOUDSDK_BUCKET:-}" ]]; then
gsutil -m cp -r "${CLOUDSDK_BUCKET}" ~
rm -rf ~/repo
mv ~/$(basename "${CLOUDSDK_BUCKET}") ~/repo
mkdir ~/cloudsdk
tar zvxf ~/repo/google-cloud-sdk.tar.gz -C ~/cloudsdk