Skip to content

Commit

Permalink
Fix version check
Browse files Browse the repository at this point in the history
  • Loading branch information
kvaps committed Dec 27, 2024
1 parent 4515355 commit 8e69e64
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions talos-bootstrap
Original file line number Diff line number Diff line change
Expand Up @@ -60,11 +60,9 @@ esac
command -V dialog || exit 1
command -V talosctl || exit 1
command -V awk || exit 1
if [ "$node" = "" ]; then
command -V nmap || exit 1
fi
command -V nmap || exit 1

VERSION_REQUIRED=v1.9
VERSION_REQUIRED=v1.8
if [ $(echo "${VERSION_REQUIRED}\n$(talosctl version --client | awk '$1 == "Tag:" {print $2}')" | sort -V | tail -n 1) = "${VERSION_REQUIRED}" ]; then
echo "talos-bootstrap requires talosctl version ${VERSION_REQUIRED} or higher. Please check 'talosctl version --client'" >&2
exit 1
Expand Down

0 comments on commit 8e69e64

Please sign in to comment.