mirror of
https://github.com/fish-shell/fish-shell
synced 2024-12-27 21:33:09 +00:00
cc8fa0f780
This has been observed to be "rclone 1.68.2" instead of "rclone v1.68.2", missing the "v".
10 lines
407 B
Fish
10 lines
407 B
Fish
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
|
|
# where previously they required *not* having it.
|
|
if test "$rclone_version[1]" -gt 1; or test "$rclone_version[2]" -gt 62
|
|
rclone completion fish - 2>/dev/null | source
|
|
else
|
|
rclone completion fish 2>/dev/null | source
|
|
end
|