From e3e99794b68feba8e9684b12bad022beb0cea78c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Dyego=20Aur=C3=A9lio?= Date: Fri, 23 Oct 2020 11:36:05 -0300 Subject: [PATCH 1/3] added a curlable install script --- scripts/install-by-curl.sh | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) create mode 100755 scripts/install-by-curl.sh diff --git a/scripts/install-by-curl.sh b/scripts/install-by-curl.sh new file mode 100755 index 0000000..b2ffc5d --- /dev/null +++ b/scripts/install-by-curl.sh @@ -0,0 +1,19 @@ + +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-$VERSION + +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 + +chmod +x scripts/install.sh +./scripts/install.sh + +if [ -d "$FOLDERPATH" ]; then rm -Rf $FOLDERPATH; fi \ No newline at end of file From 8ff1ade0aafaf5226f54a384a02a2e6a23d131a4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Dyego=20Aur=C3=A9lio?= Date: Fri, 23 Oct 2020 12:01:48 -0300 Subject: [PATCH 2/3] folder name fix --- scripts/install-by-curl.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/install-by-curl.sh b/scripts/install-by-curl.sh index b2ffc5d..fff7e28 100755 --- a/scripts/install-by-curl.sh +++ b/scripts/install-by-curl.sh @@ -1,7 +1,7 @@ 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-$VERSION +FOLDERPATH=$PWD/firefox-gnome-theme if [ -d "$FOLDERPATH" ]; then rm -Rf $FOLDERPATH; fi From 32585b99da4a16d7c39e0ae39af12095541ee390 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Dyego=20Aur=C3=A9lio?= Date: Fri, 23 Oct 2020 12:12:23 -0300 Subject: [PATCH 3/3] remove .tar.gz file from installed folder --- scripts/install-by-curl.sh | 1 + 1 file changed, 1 insertion(+) diff --git a/scripts/install-by-curl.sh b/scripts/install-by-curl.sh index fff7e28..945a9c6 100755 --- a/scripts/install-by-curl.sh +++ b/scripts/install-by-curl.sh @@ -12,6 +12,7 @@ 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