Mount Point Detection Incomplete #8
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Line ~265-273
if mount | grep -q "^/dev/${device}"; then
Issue:
Doesn't check for partition mounts (e.g., /dev/sda1, /dev/sda2)
Only checks device name, not partitions
Should use lsblk -no MOUNTPOINT /dev/$device to get all mount points