completions/rclone: Make version check more lenient

This has been observed to be "rclone 1.68.2" instead of "rclone
v1.68.2", missing the "v".
This commit is contained in:
Fabian Boehm 2024-12-14 11:20:29 +01:00
parent 378e9b236a
commit cc8fa0f780

View file

@ -1,4 +1,4 @@
set -l rclone_version (rclone version | string match -rg 'rclone v(.*)' | string split .)
set -l rclone_version (rclone version | string match -rg 'rclone v?(.*)' | string split .)
or return
# Yes, rclone's parsing here has changed, now they *require* a `-` argument