Merge pull request #166 from dyegoaurelio/curlscript

Added a installation script that can be curled
This commit is contained in:
Rafael Mardojai CM 2020-10-23 13:16:28 -05:00 committed by GitHub
commit a6fb8e5725
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 20 additions and 0 deletions

20
scripts/install-by-curl.sh Executable file
View File

@ -0,0 +1,20 @@
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
FOLDERPATH=$PWD/firefox-gnome-theme
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
chmod +x scripts/install.sh
./scripts/install.sh
if [ -d "$FOLDERPATH" ]; then rm -Rf $FOLDERPATH; fi