Skip to content

Commit

Permalink
Fixes/improvements for installer
Browse files Browse the repository at this point in the history
  • Loading branch information
dominichayesferen committed Feb 10, 2023
1 parent 3140840 commit ab9467b
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 4 deletions.
14 changes: 11 additions & 3 deletions install.sh
Original file line number Diff line number Diff line change
Expand Up @@ -52,11 +52,19 @@ for directory in ~/.mozilla/firefox ~/.var/app/org.mozilla.firefox/.mozilla/fire
done
mv -f "$profile/chrome" "$profile/chrome.bak""$bkupcounts"
echo "Backed up your old userChrome folder to chrome.bak""$bkupcounts."
else #Delete old userChrome if it's just an installation of GTKless
rm -rf "$profile/chrome"
else #Delete old ferenChrome, but leave userChrome.css intact, if it's just an installation of GTKless
rm -f "$profile/chrome/ferenChrome.css"
fi
fi
cp -Rf "$DIR/mod-files/chrome" "$profile/chrome"
if [ ! -d "$profile/chrome" ]; then #On new installs, remake the chrome folder...
mkdir "$profile/chrome"
fi
if [ ! -f "$profile/chrome/userChrome.css" ]; then #...and copy everything over.
cp -Rf "$DIR/mod-files/chrome/"* "$profile/chrome/"
else #If GTKless is already installed, only replace GTKless's CSS
cp -f "$DIR/mod-files/chrome/ferenChrome.css" "$profile/chrome/"
fi
#Now it's user.js's turn
if [ -f "$profile/user.js" ]; then
if ! grep -q '// Mozilla User Preferences for GTKless' "$profile/user.js"; then
bkupcounts=0
Expand Down
2 changes: 1 addition & 1 deletion mod-files/chrome/userChrome.css
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
@import url("css/leptonChrome.css");
/* insert other mods, above ferenChrome.css, here */
@import url("ferenChrome.css");

0 comments on commit ab9467b

Please sign in to comment.