From f69ff5b4bf567006cf724c7490c9caaa52103a59 Mon Sep 17 00:00:00 2001 From: Cody Cook Date: Thu, 7 Dec 2017 21:20:59 -0800 Subject: [PATCH] Only show directories within the volume; exclude files. btrfs subvolumes are seen as directories. --- share_lun_ui_fix.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/share_lun_ui_fix.sh b/share_lun_ui_fix.sh index 36e8303..2061f63 100755 --- a/share_lun_ui_fix.sh +++ b/share_lun_ui_fix.sh @@ -140,7 +140,7 @@ else echo "===============================" for volume in $x; do echo "= Investigating volume /$volume..." - objects=$(ls -A /"$volume" | egrep -v "^.apps$|^home$|^.purge$|^._share$|^.timemachine$|^.vault$|^.TemporaryItems$") + objects=$(cd /"$volume"; ls -dA */ | egrep -v "^.apps\/$|^home\/$|^.purge\/$|^._share\/$|^.timemachine\/$|^.vault\/$|^.TemporaryItems\/$" | sed 's/\/$//') echo "= Objects found:" $objects backup_configs for item in $objects; do