From a60dc726eb2447c191a9de1b2dc39705fab3600f Mon Sep 17 00:00:00 2001 From: KevinMidboe Date: Mon, 26 Jun 2023 16:59:44 +0200 Subject: [PATCH] fix: incorrect color secondary key in add_brew script --- add_brew.sh | 2 +- src/brews.json | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/add_brew.sh b/add_brew.sh index f462ca0..36b8b18 100644 --- a/add_brew.sh +++ b/add_brew.sh @@ -17,7 +17,7 @@ read -p 'Order page url: ' orderPage read -p 'Untapped url: ' untapped read -p 'Primary color: ' colorPrimary -brew="{\"beer\":{\"name\":\"$name\",\"brewery\":\"$brewery\",\"category\":\"$category\"},\"date\":\"$date\",\"by\":\"$by\",\"abv\":\"$abv\",\"description\":\"$description\",\"image\":\"$image\",\"recipe\":\"$recipe\",\"order_page\":\"$orderPage\",\"untapped\":\"$untapped\",\"color_primary\":\"$colorPrimary\",\"secondary_color\":\"$colorSecondary\"}" +brew="{\"beer\":{\"name\":\"$name\",\"brewery\":\"$brewery\",\"category\":\"$category\"},\"date\":\"$date\",\"by\":\"$by\",\"abv\":\"$abv\",\"description\":\"$description\",\"image\":\"$image\",\"recipe\":\"$recipe\",\"order_page\":\"$orderPage\",\"untapped\":\"$untapped\",\"color_primary\":\"$colorPrimary\",\"color_secondary\":\"$colorSecondary\"}" echo $(cat $brewFile | jq ".brews |= [$brew] + .") > $brewFile diff --git a/src/brews.json b/src/brews.json index c131d55..800b808 100644 --- a/src/brews.json +++ b/src/brews.json @@ -15,7 +15,7 @@ "order_page": "https://www.hopstore.no/products/amundsen-ink-and-dagger-25l-olsett", "untapped": "https://untappd.com/b/amundsen-bryggeri-ink-and-dagger/1785462", "color_primary": "#76C5BF", - "secondary_color": "rgba(118, 197, 191, 0.2)" + "color_secondary": "rgba(118, 197, 191, 0.2)" }, { "beer": {