Minor betterment of mount-jool "toy"
This commit is contained in:
parent
219cd1cfed
commit
ba0a9fbc57
@ -3,12 +3,8 @@ set -o errexit
|
||||
set -o pipefail
|
||||
|
||||
main() {
|
||||
if [[ "${REMOUNT}" == enabled ]]; then
|
||||
fusermount -u ~/mnt/jool 2>/dev/null || true
|
||||
elif [[ -f ~/mnt/jool/.mounted ]]; then
|
||||
printf 'Already mounted\n' >&2
|
||||
exit 0
|
||||
fi
|
||||
killall -q -w -r 'sshfs.+me@jool:/store/sshfs/meatballhat.+' || true
|
||||
fusermount -u ~/mnt/jool 2>/dev/null || true
|
||||
|
||||
local sshfs_args=(
|
||||
me@jool:/store/sshfs/meatballhat
|
||||
|
Loading…
Reference in New Issue
Block a user