Skip to content

Commit

Permalink
Make shellcheck happy
Browse files Browse the repository at this point in the history
  • Loading branch information
corneliusweig committed May 14, 2019
1 parent 8448b95 commit bdf76bc
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion konfig
Original file line number Diff line number Diff line change
Expand Up @@ -81,14 +81,15 @@ merge() {
}

import_ctx() {
local tmpcfg
local out=""
if [[ "${1}" = '--save' || "$1" = '-s' ]]; then
out="${XDG_CACHE_HOME:-$HOME/.kube}/config"
shift 1
elif [[ "${1}" =~ -(.*) ]]; then
error "unrecognized flag \"$1\""
fi
local tmpcfg=$(mktemp konfig_XXX)
tmpcfg=$(mktemp konfig_XXX)
TMPFILES+=( "$tmpcfg" )
$KUBECTL config view --flatten > "$tmpcfg"

Expand Down

0 comments on commit bdf76bc

Please sign in to comment.