dotfiles/.local/bin/moul

5 lines
118 B
Plaintext
Raw Normal View History

#!/bin/sh
# Mount a partition by label automatically
sudo mkdir -p "${2:-/mnt/$1}"
sudo mount -L "$1" "${2:-/mnt/$1}"