firefox-gnome-theme/scripts/install-by-curl.sh

21 lines
481 B
Bash
Raw Normal View History

#!/usr/bin/env bash
VERSION=$(curl --silent "https://api.github.com/repos/rafaelmardojai/firefox-gnome-theme/releases/latest" | grep tag_name | cut -d'"' -f4)
2020-10-23 17:36:05 +03:00
FILENAME=firefox-gnome-theme-$VERSION.tar.gz
(
2020-10-23 17:36:05 +03:00
cd $(mktemp -d) || exit 1
mkdir firefox-gnome-theme
cd firefox-gnome-theme
2020-10-23 17:36:05 +03:00
curl -LJo $FILENAME https://github.com/rafaelmardojai/firefox-gnome-theme/tarball/$VERSION
tar -xzf $FILENAME --strip-components=1
chmod +x scripts/auto-install.sh
./scripts/auto-install.sh
2020-10-23 17:36:05 +03:00
)