Skip to content

Commit 8e69e64

Browse files
committed
Fix version check
1 parent 4515355 commit 8e69e64

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

talos-bootstrap

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -60,11 +60,9 @@ esac
6060
command -V dialog || exit 1
6161
command -V talosctl || exit 1
6262
command -V awk || exit 1
63-
if [ "$node" = "" ]; then
64-
command -V nmap || exit 1
65-
fi
63+
command -V nmap || exit 1
6664

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

0 commit comments

Comments
 (0)