Skip to content
This repository has been archived by the owner on Jul 31, 2019. It is now read-only.

Commit

Permalink
fix test syntax for sh (#1)
Browse files Browse the repository at this point in the history
  • Loading branch information
Akasch authored and bviktor committed Jan 28, 2017
1 parent bacaa86 commit cf71d7f
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions hpkpinx.sh
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ generate_pin ()
ALGO='ec'
fi
PIN=$(openssl ${ALGO} -in ${1} -pubout 2>/dev/null | openssl pkey -pubin -outform der | openssl dgst -sha256 -binary | base64)
if [ ${PIN} == '47DEQpj8HBSa+/TImW+5JCeuQeRkm5NMpJWZG3hSuFU=' ]
if [ ${PIN} = '47DEQpj8HBSa+/TImW+5JCeuQeRkm5NMpJWZG3hSuFU=' ]
then
echo -n 'MISSING KEY!'
else
Expand All @@ -38,11 +38,11 @@ then
exit 1
fi

if [ ${1} == "generate_pin" ]
if [ ${1} = "generate_pin" ]
then
generate_pin ${2}
echo ""
elif [ ${1} == "deploy_cert" ]
elif [ ${1} = "deploy_cert" ]
then
if [ -e ${NGINX_ROOT}/hpkp.conf ]
then
Expand Down

0 comments on commit cf71d7f

Please sign in to comment.