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