From 465cd750150c6c761f77a6bf2aa8d46576990cb8 Mon Sep 17 00:00:00 2001 From: tteckster Date: Sun, 30 Apr 2023 04:48:05 -0400 Subject: [PATCH] Update monitor-all.sh tweak --- misc/monitor-all.sh | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/misc/monitor-all.sh b/misc/monitor-all.sh index ce61017c..624e71d5 100644 --- a/misc/monitor-all.sh +++ b/misc/monitor-all.sh @@ -32,11 +32,9 @@ echo '#!/usr/bin/env bash excluded_instances=("$@") echo "Excluded instances: ${excluded_instances[@]}" -while true -do +while true; do - for instance in $(pct list | awk '\''{if(NR>1) print $1}'\''; qm list | awk '\''{if(NR>1) print $1}'\'') - do + for instance in $(pct list | awk '\''{if(NR>1) print $1}'\''; qm list | awk '\''{if(NR>1) print $1}'\''); do # Skip excluded instances if [[ " ${excluded_instances[@]} " =~ " ${instance} " ]]; then continue