diff options
Diffstat (limited to 'bash')
-rw-r--r-- | bash/bashrc.d/ftp.bash | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/bash/bashrc.d/ftp.bash b/bash/bashrc.d/ftp.bash index e318a1b6..cbd7680e 100644 --- a/bash/bashrc.d/ftp.bash +++ b/bash/bashrc.d/ftp.bash @@ -15,7 +15,8 @@ _ftp() { # Iterate through tokens and collect machine names local -a machines - local token machine + local -i machine=0 + local token for token in "${tokens[@]}" ; do if ((machine)) ; then machines=("${machines[@]}" "$token") |