More portable vault mount

This commit is contained in:
Cyryl Płotnicki 2018-02-02 20:33:26 +00:00
parent 19a1b8efe1
commit 99008af1a3

View file

@ -8,13 +8,13 @@ fi
MOUNT_TARGET=$2
if [[ -z "$MOUNT_TARGET" ]]; then
MOUNT_TARGET=~/.vault
MOUNT_TARGET=$HOME/.vault
fi
mkdir -p "$MOUNT_TARGET"
MOUNT_SOURCE=$1
if [[ -z "$MOUNT_SOURCE" ]]; then
MOUNT_SOURCE="~/vaults/vault.vera"
MOUNT_SOURCE="$HOME/vaults/vault.vera"
fi
if [[ -z "$VAULT_PASSWORD" ]]; then