Update scripts

This commit is contained in:
2024-06-30 18:14:23 -04:00
parent a5cde22362
commit c8de0fbfa4
5 changed files with 18 additions and 10 deletions

View File

@@ -22,10 +22,10 @@ unset drive mountpoint
! info=$(lsblk -n -o NAME,FSTYPE,LABEL,UUID,MOUNTPOINT "$drive" | tr -s ' ') && echo "Drive $drive does not exist" && exit 1
name=$(cut -d' ' -f1 <<< "$info")
fstype=$(cut -d' ' -f2 <<< "$info")
#name=$(cut -d' ' -f1 <<< "$info")
#fstype=$(cut -d' ' -f2 <<< "$info")
label=$(cut -d' ' -f3 <<< "$info")
uuid=$(cut -d' ' -f4 <<< "$info")
#uuid=$(cut -d' ' -f4 <<< "$info")
mountedpoint=$(cut -d' ' -f5 <<< "$info")