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
# 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
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.
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