GoogleCloudPlatform / gcpdiag

gcpdiag is a command-line diagnostics tool for GCP customers.
https://gcpdiag.dev/
Apache License 2.0
284 stars 63 forks source link

wrapper doesn't work on macos #10

Closed bkw closed 2 years ago

bkw commented 2 years ago

Here's what made it work on macos for me:

--- gcpdiag.orig        2021-10-06 13:52:31.000000000 +0200
+++ gcpdiag     2021-10-06 13:54:14.000000000 +0200
@@ -1,7 +1,7 @@
 #!/bin/bash
 set -e
 THIS_WRAPPER_VERSION=0.6
-source <(curl -sf https://storage.googleapis.com/gcpdiag/release-version|grep -Ei '^\w*=[0-9a-z/\._-]*$')
+eval $(curl -sf https://storage.googleapis.com/gcpdiag/release-version|grep -Ei '^\w*=[0-9a-z/\._-]*$')
 if [[ $THIS_WRAPPER_VERSION != $WRAPPER_VERSION ]]; then
   echo
   echo "## ERROR:"
schweikert commented 2 years ago

Thanks for reporting this! Fixed in b91f92f68c28a689e1651992e59500152cd53729