Skip to content

Commit

Permalink
Automatically load/apply .env file
Browse files Browse the repository at this point in the history
  • Loading branch information
david-04 committed Apr 24, 2024
1 parent 0f22ef1 commit 05b37ea
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 3 deletions.
6 changes: 4 additions & 2 deletions .gpg2f/scripts/gpg2f.sh
Original file line number Diff line number Diff line change
Expand Up @@ -504,9 +504,11 @@ function gpg2f_run_and_unset() {
return ${EXIT_CODE?}
}

if [[ -f ./env.sh ]]; then
if [[ -f ./.env ]]; then
set -a
# shellcheck disable=SC1091
source ./env.sh
source ./.env
set +a
fi

gpg2f_run_and_unset "$@"
6 changes: 5 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,10 @@
# Change Log

## [1.0.1](https://github.com/david-04/gpg2f/releases/tag/v1.0.0) (2024-04-13)
## [1.0.2](https://github.com/david-04/gpg2f/releases/tag/v1.0.2) (2024-04-25)

- Automatically include the `.env` file (if it exists in the root directory)

## [1.0.1](https://github.com/david-04/gpg2f/releases/tag/v1.0.1) (2024-04-13)

- Suppress warnings when Java or PowerShell is not installed
- Prevent double path separator (`//`) in `encrypt.bat` and `decrypt.bat`
Expand Down

0 comments on commit 05b37ea

Please sign in to comment.