aboutsummaryrefslogtreecommitdiff
path: root/bash/bashrc.d/ssh.bash
diff options
context:
space:
mode:
Diffstat (limited to 'bash/bashrc.d/ssh.bash')
-rw-r--r--bash/bashrc.d/ssh.bash2
1 files changed, 1 insertions, 1 deletions
diff --git a/bash/bashrc.d/ssh.bash b/bash/bashrc.d/ssh.bash
index 93aeecbd..9ac90b7d 100644
--- a/bash/bashrc.d/ssh.bash
+++ b/bash/bashrc.d/ssh.bash
@@ -13,7 +13,7 @@ _ssh() {
local option value
while read -r option value _; do
if [[ $option == Host && $value != *'*'* ]]; then
- hosts[${#hosts[@]}]=$value
+ hosts=("${hosts[@]}" "$value")
fi
done < "$config"