Minor betterment of mount-jool "toy"

main
Dan Buch 2 years ago
parent 219cd1cfed
commit ba0a9fbc57
Signed by: meatballhat
GPG Key ID: A12F782281063434

@ -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…
Cancel
Save