File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change 196196 rke2_version="{{ rke2_version }}"
197197
198198 if [ -f "$rke2_bin_path" ]; then
199- installed_version="$($rke2_bin_path --version | awk '/version/ {print $3; exit }')"
199+ installed_version="$($rke2_bin_path --version | awk '/rke2 version/ {print $3}')"
200200 else
201201 installed_version="not installed"
202202 fi
207207
208208 # Linux appends the target of removed proc exe with ' (deleted)', making the path unavailable.
209209 if [ -f "$rke2_bin_path" ]; then
210- running_version="$($rke2_bin_path --version | awk '/version/ {print $3; exit }')"
210+ running_version="$($rke2_bin_path --version | awk '/rke2 version/ {print $3}')"
211211 elif [ "$installed_version" = "not installed" ]; then
212212 running_version="$rke2_version"
213213 else
You can’t perform that action at this time.
0 commit comments