16 lines
254 B
Bash
Executable File
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 "${@}"
|