From 6b0eec9218b725cdb3b476b7fd5ed8da661a7e05 Mon Sep 17 00:00:00 2001 From: Daniel Micay Date: Sun, 16 Jul 2023 01:25:16 -0400 Subject: [PATCH] clean up stats scripts --- connection-stats | 3 +-- nginx-stats | 3 +-- 2 files changed, 2 insertions(+), 4 deletions(-) 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