Skip to content

Commit fecbbff

Browse files
committed
Fix .bin/openssl-aes-decrypt-file
1 parent 54748b4 commit fecbbff

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

.bin/openssl-aes-decrypt-file

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
11
#!/bin/sh
22

3-
if echo "$1" | grep -E ".enc$"; do
3+
if echo "$1" | grep -E ".enc$"; then
44
target=${1%%.enc}
55
echo "Decrypting '$1' to '$target'"
66
openssl enc -d -aes-256-cbc -in "$1" -out "$target"
77
else
88
echo "Cannot decrypt files not ending in .enc"
99
exit 1
10-
done
10+
fi
1111

0 commit comments

Comments
 (0)