Skip to content

Commit

Permalink
Minor fix
Browse files Browse the repository at this point in the history
  • Loading branch information
caruccio committed Jul 24, 2024
1 parent 8e5950e commit 6265345
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion root/etc/profile.d/getup.sh
Original file line number Diff line number Diff line change
Expand Up @@ -681,7 +681,7 @@ if $INSIDE_CONTAINER; then
export DOT_CLUSTER_ENV="$CLUSTER_DIR/.cluster.env"
source_env "$DOT_CLUSTER_ENV"

if [ -v KUBECTL_VERSION ] && [ -x "/usr/local/bin/kubectl_$KUBECTL_VERSION" ]; then
if [ "$UID" == 0 ] && [ -v KUBECTL_VERSION ] && [ -x "/usr/local/bin/kubectl_$KUBECTL_VERSION" ]; then
ln -fs /usr/local/bin/kubectl_$KUBECTL_VERSION /usr/local/bin/kubectl
fi
else
Expand Down

0 comments on commit 6265345

Please sign in to comment.