Commit 02f4b35d authored by Janek Bevendorff's avatar Janek Bevendorff

Check if CryFS directory exists

parent b217a4f8
......@@ -65,6 +65,11 @@ cleanup() {
# Usage: mount_cryfs BASE_DIR MOUNT_DIR
mount_cryfs() {
if [ ! -d "$1" ]; then
logError "CryFS directory '$1' does not exist!"
exit 1
fi
logInfo "Mounting CryFS..."
mkdir "$2"
echo -n "Password: "
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment