Skip to content

Commit

Permalink
fix: kubectl with gke-gcloud-auth-plugin, unbound variable (#77)
Browse files Browse the repository at this point in the history
  • Loading branch information
tino415 committed Jun 18, 2023
1 parent 14d1c0d commit d13787e
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 10 deletions.
8 changes: 0 additions & 8 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -116,14 +116,6 @@ Below is the list of available components (as of version `342.0.0`):
└───────────────┴──────────────────────────────────────────────────────┴──────────────────────────┴──────────┘
```

# FAQ

```
~/.asdf/lib/commands/command-exec.bash: line 23: shim_args[@]: unbound variable
```

**This is expected** as `gcloud` requires a command. `asdf-gcloud` sets the Bash option for `nounset` variables which makes running `gcloud` without commands appear as an `asdf` error. You should always pass a command to `gcloud`.

# Contributing

Contributions of any kind welcome! See the [contributing guide](CONTRIBUTING.md).
Expand Down
2 changes: 1 addition & 1 deletion bin/exec-env
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#!/usr/bin/env bash

set -euo pipefail
set -eo pipefail

current_script_dir="$(
cd -- "$(dirname "${BASH_SOURCE[0]}")" >/dev/null 2>&1
Expand Down
2 changes: 1 addition & 1 deletion lib/utils.bash
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#!/usr/bin/env bash

set -euo pipefail
set -eo pipefail

# START Logging
function log_failure_and_exit() {
Expand Down

0 comments on commit d13787e

Please sign in to comment.