From 54399b5b5d32a38d2224251f1cb9e0d98356ce76 Mon Sep 17 00:00:00 2001 From: MacRimi Date: Tue, 2 Sep 2025 18:25:39 +0200 Subject: [PATCH] Update share-common.func --- scripts/global/share-common.func | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/scripts/global/share-common.func b/scripts/global/share-common.func index d75f9c9..4592436 100644 --- a/scripts/global/share-common.func +++ b/scripts/global/share-common.func @@ -388,7 +388,9 @@ select_container_mount_point() { ;; 2) - existing_dirs=$(pct exec "$ctid" -- ls -1 /mnt 2>/dev/null | awk '{print "/mnt/"$1" "$1}') + #existing_dirs=$(pct exec "$ctid" -- ls -1 /mnt 2>/dev/null | awk '{print "/mnt/"$1" "$1}') + existing_dirs=$(pct exec "$ctid" -- find /mnt -mindepth 1 -maxdepth 1 -type d 2>/dev/null | sort) + if [[ -z "$existing_dirs" ]]; then whiptail --msgbox "$(translate "No existing directories found in /mnt")" 8 60 continue