Correct email To

This commit is contained in:
Dryusdan 2020-05-14 17:10:50 +02:00
parent a575dc64c1
commit 365464c342
1 changed files with 1 additions and 2 deletions

View File

@ -53,8 +53,7 @@ PLAINTEXT=$(curl -s -b ghost-cookie.txt -H "Origin: https://${GHOST_WEBSITE}" "h
info "Getting email"
for member in $(curl -s -b ghost-cookie.txt -H "Origin: https://${GHOST_WEBSITE}" "https://${GHOST_WEBSITE}/ghost/api/v3/admin/members/?limit=all" | jq --raw-output ".members[] | @base64")
do
#email=$(echo ${member} | base64 --decode | jq --raw-output '.email')
email="contact@dryusdan.fr"
email=$(echo ${member} | base64 --decode | jq --raw-output '.email')
uuid=$(echo ${member} | base64 --decode | jq --raw-output '.uuid')
HTML=$(echo ${HTML} | sed "s/preview=1/uuid=${uuid}/g")
if [ $(echo ${member} | base64 --decode | jq --raw-output '.subscribed') == true ]