You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
rwxrob-dot/twitch/install-twitch

14 lines
380 B
Bash

#!/bin/bash
declare d=$(mktemp -d)
declare bin=$HOME/.local/bin
cd $d
declare latest=$(curl -sSL https://api.github.com/repos/twitchdev/twitch-cli/releases/latest | jq -r .name)
curl -sSL "https://github.com/twitchdev/twitch-cli/releases/download/${latest}/twitch-cli_${latest#v}_Linux_x86_64.tar.gz" -o tarbomb.tgz
tar xvf tarbomb.tgz twitch
mkdir -p "$bin"
mv twitch "$bin"