diff --git a/ubiquiti_stock.sh b/ubiquiti_stock.sh index 9d15793..7f8343f 100644 --- a/ubiquiti_stock.sh +++ b/ubiquiti_stock.sh @@ -11,8 +11,5 @@ 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}" | \ - mailx -r "stockalerts@johnhgaunt.com" \ - --set smtp="smtp.home.johnhgaunt.com:25" \ - ${PHONE_NUMBER}@vtext.com + echo "${MESSAGE}" | mailx -r "stockalerts@johnhgaunt.com" --set smtp="smtp.home.johnhgaunt.com:25" ${PHONE_NUMBER}@vtext.com fi \ No newline at end of file