#!/bin/bash
# mount or unmount the encfs folder .tresor to tresor
#
# check if it is already mounted or not

a=$(mount | tresor | wc -l)

if [ $a -eq 0 ]; then
    echo "mounting tresor, enter: y, y, p, password"
    encfs ~/.tresor ~/tresor
else
    echo "unmounting tresor"
    fusermount -u ~/tresor
fi

