code-snippets/shell/lsblkmounter.sh

14 lines
201 B
Bash
Raw Normal View History

2024-04-08 18:35:01 -04:00
#!/bin/bash
lsblk
echo ""
if [ ! -z $1 ]
then
mkdir -p ~/Mounts
mkdir -p ~/Mounts/$1
sudo mount /dev/$1 ~/Mounts/$1
else
echo ""
echo "Input 'NAME' to mount in ~/Mounts/'NAME'"
fi