get_emojis_mastodon.sh: fix specifying instance by argv[1]

This commit is contained in:
Kay Faraday 2022-06-11 02:18:04 +00:00
parent b2418b6cf1
commit 7801ac0dc0
1 changed files with 2 additions and 2 deletions

View File

@ -25,9 +25,9 @@ echo "Creating $emojiFolder if it doesn't exist"
mkdir -p "$emojiFolder" 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') shortcodes=$(echo "$customEmojisJson" | jq -r '.[].shortcode')