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

23 lines
582 B
Bash
Raw Normal View History

#! /bin/bash
2020-10-23 17:36:05 +03:00
VERSION=$(curl -s "https://github.com/rafaelmardojai/firefox-gnome-theme/releases/latest/download" 2>&1 | sed "s/^.*download\/\([^\"]*\).*/\1/")
FILENAME=firefox-gnome-theme-$VERSION.tar.gz
2020-10-23 18:01:48 +03:00
FOLDERPATH=$PWD/firefox-gnome-theme
2020-10-23 17:36:05 +03:00
if [ -d "$FOLDERPATH" ]; then rm -Rf $FOLDERPATH; fi
mkdir $FOLDERPATH
cd $FOLDERPATH
curl -LJo $FILENAME https://github.com/rafaelmardojai/firefox-gnome-theme/tarball/$VERSION
tar -xzf $FILENAME --strip-components=1
rm $FILENAME
2020-10-23 17:36:05 +03:00
chmod +x scripts/auto-install.sh
./auto-install.sh
2020-10-23 17:36:05 +03:00
if [ -d "$FOLDERPATH" ]; then rm -Rf $FOLDERPATH; fi