add uninstall option
This commit is contained in:
parent
5c028ce258
commit
58b032a527
1 changed files with 11 additions and 0 deletions
11
install.sh
11
install.sh
|
@ -4,6 +4,17 @@
|
||||||
GITHUB_REPO="https://github.com/bmFtZQ/edge-frfox.git"
|
GITHUB_REPO="https://github.com/bmFtZQ/edge-frfox.git"
|
||||||
PROFILE_ROOTDIR=~/.mozilla/firefox/$(grep Default= ~/.mozilla/firefox/installs.ini | tail -1 | cut -c 9-);
|
PROFILE_ROOTDIR=~/.mozilla/firefox/$(grep Default= ~/.mozilla/firefox/installs.ini | tail -1 | cut -c 9-);
|
||||||
|
|
||||||
|
# Check if issued `./installer.sh uninstall`
|
||||||
|
if [[ $1 == "uninstall" ]]; then
|
||||||
|
rm -rfi $PROFILE_ROOTDIR/chrome;
|
||||||
|
echo "uninstalling...";
|
||||||
|
echo "user_pref(\"toolkit.legacyUserProfileCustomizations.stylesheets\", false);" >> $PROFILE_ROOTDIR/prefs.js;
|
||||||
|
echo "user_pref(\"svg.context-properties.content.enabled\", false);" >> $PROFILE_ROOTDIR/prefs.js;
|
||||||
|
echo "user_pref(\"layout.css.color-mix.enabled\", false);" >> $PROFILE_ROOTDIR/prefs.js;
|
||||||
|
|
||||||
|
exit 0;
|
||||||
|
fi
|
||||||
|
|
||||||
echo "Detecting if firefox is installed on your system..."
|
echo "Detecting if firefox is installed on your system..."
|
||||||
if [ ! -f /usr/bin/firefox ] || { [ ! -f /usr/lib/firefox/firefox ]; }; then
|
if [ ! -f /usr/bin/firefox ] || { [ ! -f /usr/lib/firefox/firefox ]; }; then
|
||||||
echo "ERROR: firefox not found..."
|
echo "ERROR: firefox not found..."
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue