aboutsummaryrefslogtreecommitdiffstats
path: root/pars.sh
diff options
context:
space:
mode:
authorJames Pannacciulli <jpnc@jpnc.info>2015-01-23 10:35:25 -0800
committerJames Pannacciulli <jpnc@jpnc.info>2015-01-23 10:35:25 -0800
commit110e5d9e5ebb9237adcc2d4c90ed18d829ed7d28 (patch)
treea24e08d86821ed1e98e26eaca08789ff84b4649d /pars.sh
parenta3199903b64115b9d83493b46ea2a0a1ca6c18db (diff)
downloadparssh-110e5d9e5ebb9237adcc2d4c90ed18d829ed7d28.tar.gz
parssh-110e5d9e5ebb9237adcc2d4c90ed18d829ed7d28.tar.bz2
avoid inadvertant pervasiveness of concurrency flag
Diffstat (limited to 'pars.sh')
-rw-r--r--pars.sh5
1 files changed, 2 insertions, 3 deletions
diff --git a/pars.sh b/pars.sh
index 345e511..79bc905 100644
--- a/pars.sh
+++ b/pars.sh
@@ -1,9 +1,8 @@
#!/bin/bash
-parssh ()
-{
+parssh () {
[[ "$1" == -[0-9]* && "$1" != *[^0-9-]* ]] && {
- parssh_concurrency=${1#-}
+ local parssh_concurrency=${1#-}
shift
}
while read host; do