From f4b15e45ce8f997bc7f636a5b2c167bbe1e5c810 Mon Sep 17 00:00:00 2001 From: bash <31279994+hermensbas@users.noreply.github.com> Date: Mon, 12 Aug 2024 21:05:28 +0200 Subject: [PATCH] Update update_ahbot_config.sh --- helper/update_ahbot_config.sh | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/helper/update_ahbot_config.sh b/helper/update_ahbot_config.sh index 4bd2675..591dfb8 100755 --- a/helper/update_ahbot_config.sh +++ b/helper/update_ahbot_config.sh @@ -1,5 +1,6 @@ #!/bin/bash +# param 1 AH_BOT_MIN_ITEMS=$1; if [ -z "$AH_BOT_MIN_ITEMS" ] then @@ -7,6 +8,8 @@ then echo "Second parameter 'AH_BOT_MAX_ITEMS' is required"; exit 1; fi + +# param 2 AH_BOT_MAX_ITEMS=$2; if [ -z "$AH_BOT_MAX_ITEMS" ] then @@ -14,7 +17,6 @@ then exit 1; fi - sed -e "s/{{AH_BOT_MIN_ITEMS}}/$AH_BOT_MIN_ITEMS/g" \ -e "s/{{AH_BOT_MAX_ITEMS}}/$AH_BOT_MAX_ITEMS/g" \ "${ROOT_DIR}/../sql/update_ahbot_config.sql" > "/tmp/update_ahbot_config.sql"