From 485444b07d5520aaa2a9874c64dfae583b91ec66 Mon Sep 17 00:00:00 2001 From: tteckster Date: Sun, 30 Apr 2023 04:20:16 -0400 Subject: [PATCH] Update update-lxcs.sh tweak --- misc/update-lxcs.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/misc/update-lxcs.sh b/misc/update-lxcs.sh index 8f2daf58..3590bb84 100644 --- a/misc/update-lxcs.sh +++ b/misc/update-lxcs.sh @@ -49,7 +49,7 @@ function update_container() { esac } header_info -for container in $(pct list | tail -n +2 | cut -f1 -d' '); do +for container in $(pct list | awk '{if(NR>1) print $1}'); do excluded=false for excluded_container in "${excluded_containers[@]}"; do if [ "$container" == "$excluded_container" ]; then