Skip to content

Commit

Permalink
Removing the short flag from kubectl
Browse files Browse the repository at this point in the history
Signed-off-by: Christophe Sauthier <[email protected]>
huats committed Feb 9, 2024
1 parent 53cefcb commit d2cae9f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions scripts/deploy.sh
Original file line number Diff line number Diff line change
@@ -10,7 +10,7 @@ config_file="${SOURCE_PATH}/config/client-info.yml"
plugin_dir="/var/lib/kubelet/plugins/$plugin_name"

parse_version(){
ver=$(kubectl version --short | grep Server | awk '{print $3}')
ver=$(kubectl version | grep Server | awk '{print $3}')
major=$(echo "${ver##*v}" | cut -d'.' -f1)
minor=$(echo "${ver##*v}" | cut -d'.' -f2)

@@ -106,4 +106,4 @@ case "$1" in
print_usage
exit 1
;;
esac
esac

0 comments on commit d2cae9f

Please sign in to comment.