async validity check

This commit is contained in:
Isaac 2023-05-04 23:57:37 -07:00
parent d59b9b817f
commit b557d635fd
No known key found for this signature in database
GPG key ID: E69FB5A841448A48

View file

@ -159,7 +159,8 @@ def fish_completion():
dedent_strip_as_tuple(
f'''
function __borgmatic_check_version
set this_filename (status current-filename)
set -fx this_filename (status current-filename)
fish -c '
set this_script (cat $this_filename 2> /dev/null)
set installed_script (borgmatic --fish-completion 2> /dev/null)
if [ "$this_script" != "$installed_script" ] && [ "$installed_script" != "" ]
@ -169,8 +170,9 @@ def fish_completion():
'$this_filename',
)}"
end
' &
end
__borgmatic_check_version &
__borgmatic_check_version
function __borgmatic_last_arg --description 'Check if any of the given arguments are the last on the command line'
set -l all_args (commandline -poc)