From 3b3f0387bb4a26e3526f5619cc5ef3075993a291 Mon Sep 17 00:00:00 2001 From: MacRimi Date: Sat, 6 Sep 2025 21:05:32 +0200 Subject: [PATCH] Update share-common.func --- scripts/global/share-common.func | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/scripts/global/share-common.func b/scripts/global/share-common.func index 62b9706..6bac585 100644 --- a/scripts/global/share-common.func +++ b/scripts/global/share-common.func @@ -371,11 +371,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" -- 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 + DIRS=$(pct exec "$CTID" -- find /mnt -maxdepth 1 -mindepth 1 -type d 2>/dev/null) + if [[ -z "$DIRS" ]]; then + whiptail --title "$(translate "No Folders")" --msgbox "$(translate "No folders found in /mnt. Please create a new folder.")" 8 60 continue fi mount_point=$(whiptail --title "$(translate "Select Existing Folder")" \