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 196
196
rke2_version="{{ rke2_version }}"
197
197
198
198
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}')"
200
200
else
201
201
installed_version="not installed"
202
202
fi
207
207
208
208
# Linux appends the target of removed proc exe with ' (deleted)', making the path unavailable.
209
209
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}')"
211
211
elif [ "$installed_version" = "not installed" ]; then
212
212
running_version="$rke2_version"
213
213
else
You can’t perform that action at this time.
0 commit comments