lots: shellcheck, streaming stuff, fixes
[distro-setup] / check-remote-mailqs
index df67a041544c7e049642462c4ac9bc39757c7d05..eb8e20adf03a801e6ec1e37557123355343978b0 100755 (executable)
@@ -4,13 +4,14 @@
 
 if [ -z "$BASH_VERSION" ]; then echo "error: shell is not bash" >&2; exit 1; fi
 
-source /a/bin/errhandle/err
+source /a/bin/bash-bear-trap/bash-bear
 
 shopt -s nullglob
 shopt -s dotglob
 
+# temp disabled: x2wg kwwg
 # this list duplicated in brc2 ralerts
-for h in bk je li frodo kwwg x3wg x2wg kdwg sywg; do
+for h in bk je li x3wg kdwg sywg; do
   statedir=/b/bash_unpublished/mailq-state
   statefile=$statedir/$h
   [[ -d $statedir ]] || continue
@@ -26,7 +27,7 @@ for h in bk je li frodo kwwg x3wg x2wg kdwg sywg; do
   else
     if [[ -s $statefile ]]; then
       logsec=$(date +%s -d "$(head -n1 $statefile | awk '{print $1,$2}')")
-      case h in
+      case $h in
         frodo)
           hours=200
           ;;