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
|
set -o pipefail
|
||||||
|
|
||||||
main() {
|
main() {
|
||||||
if [[ "${REMOUNT}" == enabled ]]; then
|
killall -q -w -r 'sshfs.+me@jool:/store/sshfs/meatballhat.+' || true
|
||||||
fusermount -u ~/mnt/jool 2>/dev/null || true
|
fusermount -u ~/mnt/jool 2>/dev/null || true
|
||||||
elif [[ -f ~/mnt/jool/.mounted ]]; then
|
|
||||||
printf 'Already mounted\n' >&2
|
|
||||||
exit 0
|
|
||||||
fi
|
|
||||||
|
|
||||||
local sshfs_args=(
|
local sshfs_args=(
|
||||||
me@jool:/store/sshfs/meatballhat
|
me@jool:/store/sshfs/meatballhat
|
||||||
|
Loading…
x
Reference in New Issue
Block a user