From c802b3969c2e39d670aec858c68911af7ba286a8 Mon Sep 17 00:00:00 2001 From: John Gaunt Date: Thu, 27 Jan 2022 18:15:12 -0500 Subject: [PATCH] testing bracket --- ubiquiti_stock.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ubiquiti_stock.sh b/ubiquiti_stock.sh index 5861897..f26dad1 100644 --- a/ubiquiti_stock.sh +++ b/ubiquiti_stock.sh @@ -9,7 +9,7 @@ wget -qO ${SOURCE_FILE} ${URL} INVENTORY_QUANTITY=$(grep -o '"inventory_quantity":.,' ${SOURCE_FILE} | grep -o '[0-9]\+') -if [[ ${INVENTORY_QUANTITY} -gt 0 ]]; then +if [ ${INVENTORY_QUANTITY} -gt 0 ]; then MESSAGE="There are currently ${INVENTORY_QUANTITY} in stock. ${URL}" echo ${MESSAGE} fi