Skip to content

Commit

Permalink
Fix knife completion (#2098)
Browse files Browse the repository at this point in the history
Co-authored-by: Ira Abramov <github@ira.abramov.org>
  • Loading branch information
ira-bv and seefood committed Mar 1, 2022
1 parent 34bc37c commit be9a838
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions completion/available/knife.completion.bash
Original file line number Diff line number Diff line change
Expand Up @@ -55,12 +55,12 @@ _KAC_regen_cache() {

# cached files can't have spaces in their names
_KAC_get_cache_name_from_command() {
echo "${@/ /_SPACE_}"
echo "${@// /_SPACE_}"
}

# the reverse operation from the function above
_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
Expand Down

0 comments on commit be9a838

Please sign in to comment.