dotfiles/local/bin/mount-jool
2021-02-13 13:26:38 -05:00

16 lines
254 B
Bash
Executable File

#!/usr/bin/env bash
set -o errexit
set -o pipefail
main() {
if [[ -f ~/mnt/jool/.mounted ]]; then
printf 'Already mounted\n' >&2
exit 0
fi
mkdir -p ~/mnt/jool
sshfs me@jool:/store/sshfs/meatballhat ~/mnt/jool -p 23436 -C
}
main "${@}"