From cc8fa0f7808130ece03f1c2ac0c95f9ede2aaa1d Mon Sep 17 00:00:00 2001 From: Fabian Boehm Date: Sat, 14 Dec 2024 11:20:29 +0100 Subject: [PATCH] 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". --- share/completions/rclone.fish | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/share/completions/rclone.fish b/share/completions/rclone.fish index 744bb7051..9b9ada6c8 100644 --- a/share/completions/rclone.fish +++ b/share/completions/rclone.fish @@ -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