Files
git.taskfile.build/bin/load-dotenv-from-keepass
T

11 lines
292 B
Bash
Executable File

#!/bin/bash
function load-dotenv-from-keepass {
echo "Restore .env file from keepassxc: $KEEPASS_ENTRY"
keepassxc-cli attachment-export \
--key-file "$KEEPASS_DATABASE_KEY_FILE" \
"$KEEPASS_DATABASE_FILE" \
"$KEEPASS_ENTRY" \
".env" \
".env"
}