mirror of
https://github.com/rwxrob/dot
synced 2024-11-18 15:25:52 +00:00
14 lines
380 B
Bash
Executable File
14 lines
380 B
Bash
Executable File
#!/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"
|