dotfiles/local/bin/mount-jool

16 lines
254 B
Plaintext
Raw Normal View History

2021-02-13 18:26:38 +00:00
#!/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 "${@}"