mirror of
https://github.com/rclone/rclone.git
synced 2024-11-26 10:25:03 +01:00
Fix 'compopt: command not found' on autocomplete on macOS
As reported in #3489.
This commit is contained in:
parent
89b6d89077
commit
c0d1869204
@ -67,9 +67,9 @@ __rclone_custom_func() {
|
|||||||
local reply=${prefix:+$prefix/}$line
|
local reply=${prefix:+$prefix/}$line
|
||||||
[[ $reply != $path* ]] || COMPREPLY+=("$reply")
|
[[ $reply != $path* ]] || COMPREPLY+=("$reply")
|
||||||
done < <(rclone lsf "${cur%%:*}:$prefix" 2>/dev/null)
|
done < <(rclone lsf "${cur%%:*}:$prefix" 2>/dev/null)
|
||||||
[[ ! ${COMPREPLY[@]} ]] || compopt -o filenames
|
[[ ! ${COMPREPLY[@]} || $(type -t compopt) != builtin ]] || compopt -o filenames
|
||||||
fi
|
fi
|
||||||
[[ ! ${COMPREPLY[@]} ]] || compopt -o nospace
|
[[ ! ${COMPREPLY[@]} || $(type -t compopt) != builtin ]] || compopt -o nospace
|
||||||
fi
|
fi
|
||||||
}
|
}
|
||||||
`
|
`
|
||||||
|
Loading…
Reference in New Issue
Block a user