dotfiles/tools/mount-vault

11 lines
247 B
Text
Raw Normal View History

#!/bin/bash
set -e
mkdir -p ~/.vault
VERACRYPT="veracrypt"
if [[ "$OSTYPE" == "darwin"* ]]; then
VERACRYPT="/Applications/VeraCrypt.app/Contents/MacOS/VeraCrypt"
fi
$VERACRYPT -t --mount ~/vaults/vault.vera ~/.vault
2016-10-16 11:52:05 +01:00
sudo chown $USER ~/.vault