From 41aa85b02ef423743061e1efb24243e2d32239ed Mon Sep 17 00:00:00 2001 From: Adam Perkowski Date: Thu, 19 Sep 2024 19:53:02 +0200 Subject: [PATCH] Added `more` to partition listing in `9-auto-mount.sh` & removed unneccessary `\n` --- tabs/system-setup/9-auto-mount.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tabs/system-setup/9-auto-mount.sh b/tabs/system-setup/9-auto-mount.sh index fd81df516..cecb12828 100644 --- a/tabs/system-setup/9-auto-mount.sh +++ b/tabs/system-setup/9-auto-mount.sh @@ -6,9 +6,9 @@ select_drive() { clear printf "%b\n" "Available drives and partitions:" - lsblk -o NAME,SIZE,FSTYPE,MOUNTPOINT,LABEL,UUID | grep -v 'loop' # list all non-loop devices + lsblk -o NAME,SIZE,FSTYPE,MOUNTPOINT,LABEL,UUID | grep -v 'loop' | more # list all non-loop devices printf "\n" - printf "%b\n" "Enter the drive/partition name (e.g., sda1, sdb1): " + printf "%b" "Enter the drive/partition name (e.g., sda1, sdb1): " read -r drive_name # Check if the input is valid if lsblk | grep -q "${drive_name}"; then