dotfiles/tools/mount-vault
Cyryl Płotnicki c9186c8722
Move vault to veracrypt (#148)
* Move vault to veracrypt

* Remove broken switch (windows does not support)
2017-11-01 15:11:51 +00:00

10 lines
247 B
Bash
Executable file

#!/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
sudo chown $USER ~/.vault