From 7de0699d52a6da51c70045f8be11250b315ca2f0 Mon Sep 17 00:00:00 2001 From: heavybullets8 Date: Sat, 19 Aug 2023 18:10:49 -0600 Subject: [PATCH] allow for all --- functions/pvc/unmount.sh | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/functions/pvc/unmount.sh b/functions/pvc/unmount.sh index 7bd7149c..b0f73c6f 100644 --- a/functions/pvc/unmount.sh +++ b/functions/pvc/unmount.sh @@ -50,7 +50,9 @@ unmount_app_func(){ awk -F '|' '{print $3}' | sed -e 's/^[[:space:]]*//' -e 's/[[:space:]]*$//') - if [[ -z $1 ]]; then + if [[ $1 == "ALL" ]]; then + mapfile -t apps < <(find /mnt/mounted_pvc/ -mindepth 1 -maxdepth 1 -type d -printf '%f\n' 2>/dev/null) + elif [[ -z $1 ]]; then unmount_app_menu fi