- Expand AGENTS.md with general agent guidance and coding conventions - Refactor bash snippets in README.md and scripts to align with style guide: - Use `#!/usr/bin/env bash` shebang for portability - Remove `function` keyword from definitions - Replace `[ ]` conditionals with `[[ ]]` for improved reliability - Rename local variables to lowercase with `local` keyword - Introduce CHANGELOG.md to track project changes per Keep a Changelog spec - Update taskfile.build scripts to follow consistent bash practices
20 lines
544 B
Bash
Executable File
20 lines
544 B
Bash
Executable File
#!/usr/bin/env bash
|
|
|
|
save-dotenv-to-keepass() {
|
|
if [[ -f .env ]]; then
|
|
echo "Store .env file in keepassxc: $KEEPASS_ENTRY"
|
|
keepassxc-cli add \
|
|
--key-file "$KEEPASS_DATABASE_KEY_FILE" \
|
|
"$KEEPASS_DATABASE_FILE" \
|
|
"$KEEPASS_ENTRY"
|
|
keepassxc-cli attachment-import \
|
|
--key-file "$KEEPASS_DATABASE_KEY_FILE" \
|
|
"$KEEPASS_DATABASE_FILE" \
|
|
"$KEEPASS_ENTRY" \
|
|
".env" \
|
|
".env"
|
|
else
|
|
echo "No .env file found."
|
|
fi
|
|
}
|