From fce5eb6179593381cc1c6fc5914c2122c20942ea Mon Sep 17 00:00:00 2001 From: Esa Jokinen Date: Wed, 7 Aug 2024 13:13:19 +0300 Subject: [PATCH] product-pricelimiter.sh generix currency MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Remove € signs as this works for, e.g., $ & £, too. --- bin/product-pricelimiter.sh | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/bin/product-pricelimiter.sh b/bin/product-pricelimiter.sh index e96307c..8110d84 100755 --- a/bin/product-pricelimiter.sh +++ b/bin/product-pricelimiter.sh @@ -153,26 +153,26 @@ fi if [ "$maxprice" == "$price" ]; then echo -ne "\033[0;32mGood to buy! " - echo -e "The price (#$n in \"$selector\") is now exactly $price €\033[0m" + echo -e "The price (#$n in \"$selector\") is now exactly $price\033[0m" exit 0 fi if [ "$isLower" = 1 ]; then echo -ne "\033[0;32mGood to buy! " - echo -e "The price (#$n in \"$selector\") is now $price €\033[0m" + echo -e "The price (#$n in \"$selector\") is now $price\033[0m" if command -v bc &> /dev/null; then diff=$(echo "scale=2; ($maxprice - $price)/1" | bc) - echo -ne "\033[0;32mThat is $diff € lower " - echo -e "than the max price ($maxprice €)\033[0m" + echo -ne "\033[0;32mThat is $diff lower " + echo -e "than the max price ($maxprice)\033[0m" fi exit 0 else echo -ne "\033[0;33mPlease be patient! " - echo -e "The price (#$n in \"$selector\") is still $price €\033[0m" + echo -e "The price (#$n in \"$selector\") is still $price\033[0m" if command -v bc &> /dev/null; then diff=$(echo "scale=2; ($price - $maxprice)/1" | bc) - echo -ne "\033[0;33mThat is $diff € higher " - echo -e "than the max price ($maxprice €)\033[0m" + echo -ne "\033[0;33mThat is $diff higher " + echo -e "than the max price ($maxprice)\033[0m" fi exit 2 fi