dotfiles/.local/bin/moul

5 lines
118 B
Bash
Executable File

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