Skip to content

Commit

Permalink
Test now is working again
Browse files Browse the repository at this point in the history
  • Loading branch information
lguzzon committed Jan 9, 2020
1 parent d1d00db commit 8f11c85
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions encpass.sh
Original file line number Diff line number Diff line change
Expand Up @@ -114,10 +114,10 @@ set_secret() {
if [ "$SECRET" = "$CSECRET" ]; then
printf "%s" "$(openssl rand -hex 16)" >"$SECRET_DIR/$SECRET_NAME.enc"

# shellcheck disable=SC2094
echo "$SECRET" | openssl enc -aes-256-cbc -e -a -iv \
"$(cat "$SECRET_DIR/$SECRET_NAME.enc")" -K \
"$(cat "$ENCPASS_HOME_DIR/keys/$LABEL/private.key")" 1>>"$SECRET_DIR/$SECRET_NAME.enc_" &&
mv "$SECRET_DIR/$SECRET_NAME.enc_" "$SECRET_DIR/$SECRET_NAME.enc"
"$(cat "$ENCPASS_HOME_DIR/keys/$LABEL/private.key")" 1>>"$SECRET_DIR/$SECRET_NAME.enc"
else
echo "Error: secrets do not match. Please try again." >&2
exit 1
Expand Down
4 changes: 2 additions & 2 deletions tests/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
FROM ubuntu:18.04

RUN apt-get update &&
apt-get install -qy zsh ksh expect openssl
RUN apt-get update \
&& apt-get install -qy zsh ksh expect openssl

RUN mkdir /opt/encpass

Expand Down

0 comments on commit 8f11c85

Please sign in to comment.