Skip to content

Commit

Permalink
Added more to partition listing in 9-auto-mount.sh & removed unne…
Browse files Browse the repository at this point in the history
…ccessary `\n`
  • Loading branch information
adamperkowski committed Sep 19, 2024
1 parent fb88352 commit 41aa85b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tabs/system-setup/9-auto-mount.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 41aa85b

Please sign in to comment.