From 2e2d6c1750b079a7c49a1a97ec51528e8f225169 Mon Sep 17 00:00:00 2001 From: John Gaunt Date: Thu, 27 Jan 2022 18:48:52 -0500 Subject: [PATCH] add message in quotes --- ubiquiti_stock.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ubiquiti_stock.sh b/ubiquiti_stock.sh index 71ece98..9d15793 100644 --- a/ubiquiti_stock.sh +++ b/ubiquiti_stock.sh @@ -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