diff --git a/.gpg2f/scripts/gpg2f.sh b/.gpg2f/scripts/gpg2f.sh index 16b1418..9fc8edf 100755 --- a/.gpg2f/scripts/gpg2f.sh +++ b/.gpg2f/scripts/gpg2f.sh @@ -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 "$@" diff --git a/CHANGELOG.md b/CHANGELOG.md index a16638d..ea75555 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -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`