add message in quotes

This commit is contained in:
2022-01-27 18:48:52 -05:00
parent 91f85b1101
commit 2e2d6c1750

View File

@@ -11,7 +11,7 @@ INVENTORY_QUANTITY=$(grep -o -m 1 '"inventory_quantity":[0-9]\+,' ${SOURCE_FILE}
if [[ "${INVENTORY_QUANTITY}" -gt "0" ]]; then
MESSAGE="There are currently ${INVENTORY_QUANTITY} in stock. ${URL}"
echo ${MESSAGE} | \
echo "${MESSAGE}" | \
mailx -r "stockalerts@johnhgaunt.com" \
--set smtp="smtp.home.johnhgaunt.com:25" \
${PHONE_NUMBER}@vtext.com