Skip to content

Commit

Permalink
feature: enable one-way encrypted secrets
Browse files Browse the repository at this point in the history
fixes #9
  • Loading branch information
ryantm committed Feb 20, 2023
1 parent 55b5135 commit d3acdfd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkgs/agenix.sh
Original file line number Diff line number Diff line change
Expand Up @@ -106,7 +106,7 @@ function edit {
CLEARTEXT_DIR=$(@mktempBin@ -d)
CLEARTEXT_FILE="$CLEARTEXT_DIR/$(basename "$FILE")"

if [ -f "$FILE" ]
if [ -f "$FILE" ] && [ -t 0 ]
then
DECRYPT=("${DEFAULT_DECRYPT[@]}")
if [[ "${DECRYPT[*]}" != *"--identity"* ]]; then
Expand Down

0 comments on commit d3acdfd

Please sign in to comment.