diff options
author | Tom Ryder <tom@sanctum.geek.nz> | 2013-09-01 01:05:50 +1200 |
---|---|---|
committer | Tom Ryder <tom@sanctum.geek.nz> | 2013-09-01 01:05:50 +1200 |
commit | a60119e7abc2b5114eb25fc0a0c7b7b83f3234d6 (patch) | |
tree | 10b737c63d0a92ad1ebca0e57c56a54c447c3a52 /bash/bashrc.d/ssh.bash | |
parent | Turns out older Bash is muddled by var=() (diff) | |
download | dotfiles-a60119e7abc2b5114eb25fc0a0c7b7b83f3234d6.tar.gz dotfiles-a60119e7abc2b5114eb25fc0a0c7b7b83f3234d6.zip |
Forgot a couple of array declarations
Diffstat (limited to 'bash/bashrc.d/ssh.bash')
-rw-r--r-- | bash/bashrc.d/ssh.bash | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/bash/bashrc.d/ssh.bash b/bash/bashrc.d/ssh.bash index e4ca1dec..93aeecbd 100644 --- a/bash/bashrc.d/ssh.bash +++ b/bash/bashrc.d/ssh.bash @@ -1,8 +1,8 @@ # Commpletion for ssh/sftp/ssh-copy-id with config hostnames _ssh() { local config=$HOME/.ssh/config - local hosts=() local word=${COMP_WORDS[COMP_CWORD]} + local -a hosts # Bail if the configuration file is illegible if [[ ! -r $config ]]; then |