diff --git a/.gpg2f/scripts/show-notification/auto.sh b/.gpg2f/scripts/show-notification/auto.sh index 342af63..45208ee 100755 --- a/.gpg2f/scripts/show-notification/auto.sh +++ b/.gpg2f/scripts/show-notification/auto.sh @@ -1,7 +1,7 @@ #!/usr/bin/env bash -if which java >/dev/null; then +if which java >/dev/null 2>/dev/null; then . .gpg2f/scripts/show-notification/java.sh "$@" -elif which powershell >/dev/null; then +elif which powershell >/dev/null 2>/dev/null; then . .gpg2f/scripts/show-notification/powershell.sh "$@" fi diff --git a/CHANGELOG.md b/CHANGELOG.md index ec74482..a16638d 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,10 @@ # Change Log +## [1.0.1](https://github.com/david-04/gpg2f/releases/tag/v1.0.0) (2024-04-13) + +- Suppress warnings when Java or PowerShell is not installed +- Prevent double path separator (`//`) in `encrypt.bat` and `decrypt.bat` + ## [1.0.0](https://github.com/david-04/gpg2f/releases/tag/v1.0.0) (2024-04-05) - First release diff --git a/decrypt.bat b/decrypt.bat index 34461b8..b133976 100644 --- a/decrypt.bat +++ b/decrypt.bat @@ -1,3 +1,3 @@ @echo off set GPG2F_DECRYPT_DIRECTORY=%~dp0 -env %GPG2F_DECRYPT_DIRECTORY:\=/%/decrypt.sh %* +env %GPG2F_DECRYPT_DIRECTORY:\=/%decrypt.sh %* diff --git a/encrypt.bat b/encrypt.bat index 4d3901a..791771e 100644 --- a/encrypt.bat +++ b/encrypt.bat @@ -1,3 +1,3 @@ @echo off set GPG2F_ENCRYPT_DIRECTORY=%~dp0 -env %GPG2F_ENCRYPT_DIRECTORY:\=/%/encrypt.sh %* +env %GPG2F_ENCRYPT_DIRECTORY:\=/%encrypt.sh %*