testing bracket

This commit is contained in:
2022-01-27 18:15:12 -05:00
parent 54676f1303
commit c802b3969c

View File

@@ -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