updated gcp_info_storage.sh

pull/2/head
Hari Sekhon 4 years ago
parent 14d52f9c71
commit 46dc253f84

@ -42,10 +42,18 @@ $gcp_info_formatting_help
# used by usage() in lib/utils.sh
# shellcheck disable=SC2034
usage_args=""
usage_args="[<project_id>]"
help_usage "$@"
check_bin gcloud
if [ $# -gt 0 ]; then
project_id="$1"
shift || :
export CLOUDSDK_CORE_PROJECT="$project_id"
fi
# shellcheck disable=SC1090
type is_service_enabled &>/dev/null || . "$srcdir/gcp_service_apis.sh" >/dev/null

Loading…
Cancel
Save