Skip to content

Commit

Permalink
Changed the PATH precedence
Browse files Browse the repository at this point in the history
  • Loading branch information
Ark-kun committed Sep 21, 2020
1 parent ed2fe83 commit cd1fcca
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion backend/src/cache/deployer/deploy-cache-service.sh
Expand Up @@ -29,7 +29,7 @@ WEBHOOK_SECRET_NAME=webhook-server-tls
# Getting correct kubectl. Kubernetes only supports kubectl versions within +/-1 minor version.
# kubectl has some resource version information hardcoded, so using too old kubectl can lead to errors
mkdir -p "$HOME/bin"
export PATH="$PATH:$HOME/bin"
export PATH="$HOME/bin:$PATH"
{
server_version_major_minor=$(kubectl version --output json | jq '(.serverVersion.major + "." + .serverVersion.minor)' | tr -d '+')
stable_build_version=$(curl -s "https://storage.googleapis.com/kubernetes-release/release/stable-${server_version_major_minor}.txt")
Expand Down

0 comments on commit cd1fcca

Please sign in to comment.