aboutsummaryrefslogtreecommitdiff
path: root/bash
diff options
context:
space:
mode:
authorTom Ryder <tom@sanctum.geek.nz>2014-10-19 13:03:15 +1300
committerTom Ryder <tom@sanctum.geek.nz>2014-10-19 13:03:15 +1300
commit31986b01d3a7a439b06d8699324ceba6358838fc (patch)
tree33ad09e91b3f0ab95b0db6f819931a56ed2308cb /bash
parentDefine PS{2..4}, including a nice PS4 for set -x (diff)
downloaddotfiles-31986b01d3a7a439b06d8699324ceba6358838fc.tar.gz
dotfiles-31986b01d3a7a439b06d8699324ceba6358838fc.zip
Refine definition of local var
Diffstat (limited to 'bash')
-rw-r--r--bash/bashrc.d/ftp.bash3
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")