From 110e5d9e5ebb9237adcc2d4c90ed18d829ed7d28 Mon Sep 17 00:00:00 2001 From: James Pannacciulli Date: Fri, 23 Jan 2015 10:35:25 -0800 Subject: avoid inadvertant pervasiveness of concurrency flag --- pars.sh | 5 ++--- 1 file 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 -- cgit v1.2.3