Skip to content

Commit

Permalink
fix(completions/ssh): correct to array var in relative or absolute tr…
Browse files Browse the repository at this point in the history
…ansform loop
  • Loading branch information
Stéphane Juventy committed Apr 29, 2024
1 parent 1ecc6a3 commit 10d9b63
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion completions/ssh.completion.sh
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ function _omb_completion_ssh {
local i
for i in "${!include_patterns[@]}"; do
# relative or absolute path, if relative transforms to absolute
[[ ${include_patterns[i]} == /* ]] || include_patterns[i]=~/.ssh/$include_pattern
[[ ${include_patterns[i]} == /* ]] || include_patterns[i]=~/.ssh/${include_patterns[i]}
done

# interpret possible globing
Expand Down

0 comments on commit 10d9b63

Please sign in to comment.