Skip to content

Commit

Permalink
Suppress warnings and avoid double backslashes in Windows paths
Browse files Browse the repository at this point in the history
  • Loading branch information
david-04 committed Apr 13, 2024
1 parent 5d5ffed commit 0f22ef1
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 4 deletions.
4 changes: 2 additions & 2 deletions .gpg2f/scripts/show-notification/auto.sh
Original file line number Diff line number Diff line change
@@ -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
5 changes: 5 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -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
2 changes: 1 addition & 1 deletion decrypt.bat
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
@echo off
set GPG2F_DECRYPT_DIRECTORY=%~dp0
env %GPG2F_DECRYPT_DIRECTORY:\=/%/decrypt.sh %*
env %GPG2F_DECRYPT_DIRECTORY:\=/%decrypt.sh %*
2 changes: 1 addition & 1 deletion encrypt.bat
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
@echo off
set GPG2F_ENCRYPT_DIRECTORY=%~dp0
env %GPG2F_ENCRYPT_DIRECTORY:\=/%/encrypt.sh %*
env %GPG2F_ENCRYPT_DIRECTORY:\=/%encrypt.sh %*

0 comments on commit 0f22ef1

Please sign in to comment.