vinceliuice / Lavanda-gtk-theme

Lavanda gtk theme for linux desktops
GNU General Public License v3.0
283 stars 14 forks source link

Install does not work if the source folder has spaces in its name #30

Closed Lamecarlate closed 9 months ago

Lamecarlate commented 9 months ago

I couldn't install the theme, as there were errors on cp and sed lines. This is because I have spaces in the name of many folders. With some little fixes in the install.sh file, it works.

Git diff (let me know if you need more information):

diff --git a/install.sh b/install.sh
index f612521..a386e11 100755
--- a/install.sh
+++ b/install.sh
@@ -352,12 +352,12 @@ theme_options() {
 }

 gnome_shell_version() {
-  cp -rf ${SRC_DIR}/sass/gnome-shell/_common.scss ${SRC_DIR}/sass/gnome-shell/_common-temp.scss
+  cp -rf "${SRC_DIR}/sass/gnome-shell/_common.scss" "${SRC_DIR}/sass/gnome-shell/_common-temp.scss"

-  sed -i "/\widgets/s/40-0/${GS_VERSION}/" ${SRC_DIR}/sass/gnome-shell/_common-temp.scss
+  sed -i "/\widgets/s/40-0/${GS_VERSION}/" "${SRC_DIR}/sass/gnome-shell/_common-temp.scss"

   if [[ "${GS_VERSION}" == '3-28' ]]; then
-    sed -i "/\extensions/s/40-0/${GS_VERSION}/" ${SRC_DIR}/sass/gnome-shell/_common-temp.scss
+    sed -i "/\extensions/s/40-0/${GS_VERSION}/" "${SRC_DIR}/sass/gnome-shell/_common-temp.scss"
   fi
 }