Skip to content

Commit f7dde66

Browse files
committed
Updated GetBtrfs().
1 parent cc9da26 commit f7dde66

File tree

1 file changed

+4
-5
lines changed

1 file changed

+4
-5
lines changed

system-info

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@
3333
#### Variables
3434
########################################################################
3535
# Versioning
36-
version="Version: 02.00-08, Script Date: 2023.05.23"
36+
version="Version: 02.00-08, Script Date: 2023.05.24"
3737
exit_code=0
3838
#md5_sum=$(md5sum $sname | sed 's/system.*//g' )
3939
arg1=$1
@@ -1263,10 +1263,9 @@ function GetBtrfs()
12631263
# Show BTRFS dev's and their mounts
12641264
bt_lsblk=$(sudo lsblk -o name,mountpoint,size,fstype,UUID | \
12651265
grep 'btrfs' | \
1266-
grep -v 'snap\|loop' | \
12671266
awk '{print $1 " " $2}' | \
1268-
cut -b 7- | \
1269-
sed 's/^/\/dev\//g' )
1267+
sed 's/var.*//g' | \
1268+
sed 's/^[\|,`]-/\|_/g' )
12701269

12711270
# echo "Debug -- bt_lsblk: $bt_lsblk"
12721271

@@ -1277,7 +1276,7 @@ function GetBtrfs()
12771276
else
12781277
echo -e "There are BTRFS vdev's present: "
12791278
nl
1280-
echo -e "BT_VDEV MOUNT"
1279+
echo -e "BT_VDEV MOUNT "
12811280
echo -e "$bt_lsblk"
12821281
nl
12831282
btrfs_detail=0 # Set flag for BTRFS present

0 commit comments

Comments
 (0)