From cf9432778732e8a204cdfb3a28e1776017534b55 Mon Sep 17 00:00:00 2001 From: CanbiZ <47820557+MickLesk@users.noreply.github.com> Date: Thu, 7 Aug 2025 14:09:09 +0200 Subject: [PATCH] Update fstrim.sh --- tools/pve/fstrim.sh | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/tools/pve/fstrim.sh b/tools/pve/fstrim.sh index 4ce4838a..c78bf4e9 100644 --- a/tools/pve/fstrim.sh +++ b/tools/pve/fstrim.sh @@ -77,11 +77,12 @@ read -ra EXCLUDED <<<$(echo "$excluded_containers_raw" | tr -d '"') TO_START=() if [ ${#STOPPED_MENU[@]} -gt 0 ]; then - - echo -e "${BL}[Info]${GN}Some containers are currently stopped.${CL}" for ((i = 0; i < ${#STOPPED_MENU[@]}; i += 3)); do CTID="${STOPPED_MENU[i]}" DESC="${STOPPED_MENU[i + 1]}" + if [[ " ${EXCLUDED[*]} " =~ " $CTID " ]]; then + continue + fi header_info echo -e "${BL}[Info]${GN} Container $CTID ($DESC) is currently stopped.${CL}" read -rp "Temporarily start for fstrim? [y/N]: " answer