From fd6877e4e836173daac48065b62d706fa39d7180 Mon Sep 17 00:00:00 2001 From: John Gaunt Date: Thu, 27 Jan 2022 19:50:31 -0500 Subject: [PATCH] quotes --- ubiquiti_stock.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/ubiquiti_stock.sh b/ubiquiti_stock.sh index 7794fac..b58b952 100644 --- a/ubiquiti_stock.sh +++ b/ubiquiti_stock.sh @@ -10,9 +10,9 @@ echo "Name: ${3}" SOURCE_FILE="/tmp/source-${NAME}.html" -wget -qO ${SOURCE_FILE} ${URL} +wget -qO "${SOURCE_FILE}" ${URL} -INVENTORY_QUANTITY=$(grep -o -m 1 '"inventory_quantity":[0-9]\+,' ${SOURCE_FILE} | grep -o '[0-9]\+') +INVENTORY_QUANTITY=$(grep -o -m 1 '"inventory_quantity":[0-9]\+,' "${SOURCE_FILE}" | grep -o '[0-9]\+') echo "Inventory Quantity: ${INVENTORY_QUANTITY}"