Fix knife completion (#2098)

Co-authored-by: Ira Abramov <github@ira.abramov.org>
pull/2101/head v3.0.0
Ira Abramov 2022-03-01 23:22:56 +02:00 committed by GitHub
parent 34bc37c178
commit be9a838015
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 2 deletions

View File

@ -55,12 +55,12 @@ _KAC_regen_cache() {
# cached files can't have spaces in their names # cached files can't have spaces in their names
_KAC_get_cache_name_from_command() { _KAC_get_cache_name_from_command() {
echo "${@/ /_SPACE_}" echo "${@// /_SPACE_}"
} }
# the reverse operation from the function above # the reverse operation from the function above
_KAC_get_command_from_cache_name() { _KAC_get_command_from_cache_name() {
echo "${@/_SPACE_/ }" echo "${@//_SPACE_/ }"
} }
# given a command as argument, it fetches the cache for that command if it can find it # given a command as argument, it fetches the cache for that command if it can find it