Jool mount script thing

This commit is contained in:
Dan Buch 2021-02-13 13:26:38 -05:00
parent ea3767e313
commit 3b700f3ec1
Signed by: meatballhat
GPG Key ID: 9685130D8B763EA7

15
local/bin/mount-jool Executable file
View File

@ -0,0 +1,15 @@
#!/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 "${@}"