Minor betterment of mount-jool "toy"

This commit is contained in:
Dan Buch 2022-06-30 09:57:43 -04:00
parent 219cd1cfed
commit ba0a9fbc57
Signed by: meatballhat
GPG Key ID: A12F782281063434

View File

@ -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