#!/usr/bin/env nix-shell
#!nix-shell -i bash -p bash -p gocryptfs

pass_file=/run/gocryptfs/private.key
pass_str=$(cat "$pass_file")
rm "$pass_file"
echo "$pass_str" | exec gocryptfs -nosyslog -passfile /dev/fd/0 "$@"
