Update scripts
This commit is contained in:
@@ -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")
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user