Merge pull request #166 from dyegoaurelio/curlscript
Added a installation script that can be curled
This commit is contained in:
commit
a6fb8e5725
|
@ -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
|
Loading…
Reference in New Issue