Jool mount script thing
This commit is contained in:
parent
ea3767e313
commit
3b700f3ec1
15
local/bin/mount-jool
Executable file
15
local/bin/mount-jool
Executable 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 "${@}"
|
Loading…
Reference in New Issue
Block a user