Skip to content

Commit

Permalink
New variable changes
Browse files Browse the repository at this point in the history
  • Loading branch information
Abhishek Roy committed Jan 27, 2023
1 parent 49b3306 commit cca19f7
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions run.sh
Original file line number Diff line number Diff line change
Expand Up @@ -35,10 +35,15 @@ if [[ "${GHOST_HOSTED_BLOG_PATH}" != "${GHOST_STATIC_BLOG_PATH}" ]]; then
exit 1
fi

GHOST_HOSTED_URL_WITHOUT_PROTOCOL=$(echo -e ${GHOST_HOSTED_URL} | sed -e 's/^https://')
GHOST_STATIC_HOST_URL_WITHOUT_PROTOCOL=$(echo -e ${GHOST_STATIC_HOST_URL} | sed -e 's/^https://')

echo "###########################################################"
echo "GHOST_HOSTED_URL : ${GHOST_HOSTED_URL}"
echo "GHOST_HOSTED_URL_WITHOUT_PROTOCOL : ${GHOST_HOSTED_URL_WITHOUT_PROTOCOL}"
echo "GHOST_HOSTED_BLOG_PATH : ${GHOST_HOSTED_BLOG_PATH}"
echo "GHOST_STATIC_HOST_URL : ${GHOST_STATIC_HOST_URL}"
echo "GHOST_STATIC_HOST_URL_WITHOUT_PROTOCOL : ${GHOST_STATIC_HOST_URL_WITHOUT_PROTOCOL}"
echo "GHOST_STATIC_BLOG_DOMAIN : ${GHOST_STATIC_BLOG_DOMAIN}"
echo "GHOST_STATIC_HOST : ${GHOST_STATIC_HOST}"
echo "GHOST_STATIC_BLOG_PATH : ${GHOST_STATIC_BLOG_PATH}"
Expand Down Expand Up @@ -71,6 +76,7 @@ echo " "
echo "***** Replace text with custom text started *****"
declare -A REPLACE_CONTENT=(
["${GHOST_HOSTED_URL}"]="${GHOST_STATIC_HOST_URL}"
["${GHOST_HOSTED_URL_WITHOUT_PROTOCOL}"]="${GHOST_STATIC_HOST_URL_WITHOUT_PROTOCOL}"
["\"url\": \"${GHOST_STATIC_HOST_URL}/\""]="\"url\": \"${GHOST_STATIC_HOST}/\""
["\"@type\": \"WebSite\""]="\"@type\": \"WebPage\""
)
Expand Down

0 comments on commit cca19f7

Please sign in to comment.