gcloud in tools.

This commit is contained in:
David Tomaschik
2017-02-04 12:29:25 -08:00
parent f3b6be53e0
commit c8c954617e
4 changed files with 23 additions and 5 deletions

View File

@@ -86,6 +86,14 @@ case ${TOOL} in
http://downloads.skullsecurity.org/passwords/hak5.txt.bz2
bunzip2 ${DESTDIR}/hak5.txt.bz2
;;
gcloud)
gtemp=`mktemp -d`
gbase="https://dl.google.com/dl/cloudsdk/channels/rapid/downloads/"
gsdk="google-cloud-sdk-142.0.0-linux-x86_64.tar.gz"
wget -q -O /tmp/gcloud.tar.gz \
"${gbase}${gsdk}"
tar zxf /tmp/gcloud.tar.gz --strip-components=1 -C ${DESTDIR}
;;
*)
echo "Unknown tool: ${TOOL}" >/dev/stderr
exit 1