Skip to content

Commit

Permalink
fix: use printf instead of cat
Browse files Browse the repository at this point in the history
  • Loading branch information
tale committed Jun 27, 2022
1 parent 1c88fc9 commit 50d0813
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions login-kubectl.sh
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,6 @@ if [ ! -d "$HOME/.kube" ]; then
mkdir -p $HOME/.kube
fi

echo "$BASE64_KUBE_CONFIG"
echo "$BASE64_KUBE_CONFIG" > $HOME/.kube/config.b64
printf "$BASE64_KUBE_CONFIG"
printf "$BASE64_KUBE_CONFIG" > $HOME/.kube/config.b64
cat $HOME/.kube/config.b64 | base64 -d > $HOME/.kube/config

0 comments on commit 50d0813

Please sign in to comment.