fix: #10184 causes adb file completion failures (#10349)

Signed-off-by: NextAlone <12210746+NextAlone@users.noreply.github.com>
This commit is contained in:
Next Alone 2024-03-09 11:56:37 +08:00 committed by GitHub
parent 6eddaa37af
commit a1d44a92be
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -73,7 +73,7 @@ function __fish_adb_list_files
end
# Return list of directories suffixed with '/'
__fish_adb_run_command find -H "$token*" -maxdepth 0 -type d 2\>/dev/null | awk '{print $0"/"}'
__fish_adb_run_command find -H "$token*" -maxdepth 0 -type d 2\>/dev/null | string replace -r '$' /
# Return list of files
__fish_adb_run_command find -H "$token*" -maxdepth 0 -type f 2\>/dev/null
end