Skip to content
This repository has been archived by the owner on Jun 6, 2024. It is now read-only.

Commit

Permalink
allow for all
Browse files Browse the repository at this point in the history
  • Loading branch information
Heavybullets8 committed Aug 20, 2023
1 parent 5afc5c5 commit 7de0699
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion functions/pvc/unmount.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down

0 comments on commit 7de0699

Please sign in to comment.