rm -rf ./data.link ln -s "$1/notes" ./data.link echo "Remade link" #echo "Start markdown viewer" #echo "pandoc $1/notes/*.md | lynx -stdin" echo "Starting container..." docker run --name privmd --rm -it -v `pwd`/data.link/:/notes `docker build -q .` echo "Unmounting db..." luks=`lsblk | grep /media/michael/Return\ to\ mscalz | grep -o -e "luks-[[:alnum:]-]*"` umount -f "$1" cryptsetup luksClose /dev/mapper/$luks echo "Exiting..."