From 7801ac0dc0d216447d36fce1e0a02a29fa929e1c Mon Sep 17 00:00:00 2001 From: Kay Faraday Date: Sat, 11 Jun 2022 02:18:04 +0000 Subject: [PATCH] get_emojis_mastodon.sh: fix specifying instance by argv[1] --- scripts/get_emojis_mastodon.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/scripts/get_emojis_mastodon.sh b/scripts/get_emojis_mastodon.sh index b49a811..a0bb815 100755 --- a/scripts/get_emojis_mastodon.sh +++ b/scripts/get_emojis_mastodon.sh @@ -25,9 +25,9 @@ echo "Creating $emojiFolder if it doesn't exist" mkdir -p "$emojiFolder" -# load $MASTODON_INSTANCE/api/v1/custom_emojis with curl into a variable +# load $mastodon_instance/api/v1/custom_emojis with curl into a variable -customEmojisJson=$(curl -s "$MASTODON_INSTANCE/api/v1/custom_emojis") +customEmojisJson=$(curl -s "$mastodon_instance/api/v1/custom_emojis") shortcodes=$(echo "$customEmojisJson" | jq -r '.[].shortcode')