aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-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