diff --git a/connection-stats b/connection-stats index 0756631..411387a 100755 --- a/connection-stats +++ b/connection-stats @@ -2,14 +2,13 @@ set -o errexit -o nounset -o pipefail -[[ $# -ge 1 ]] || exit 1 +[[ $# -eq 1 ]] || exit 1 user=root . hosts.sh declare -n hosts=hosts_$1 -shift for host in ${hosts[@]}; do echo $host echo diff --git a/nginx-stats b/nginx-stats index 39ca72e..c2bf350 100755 --- a/nginx-stats +++ b/nginx-stats @@ -2,14 +2,13 @@ set -o errexit -o nounset -o pipefail -[[ $# -ge 1 ]] || exit 1 +[[ $# -eq 1 ]] || exit 1 user=root . hosts.sh declare -n hosts=hosts_$1 -shift for host in ${hosts[@]}; do echo $host echo