aboutsummaryrefslogtreecommitdiff
path: root/.local/bin/script/arkenfox-updater
blob: 78df1cc0af58457f40d5c75e3d0af2509bb6d3af (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
#!/bin/sh

if [ -d ~/.var/app/org.mozilla.firefox/.mozilla/firefox/biual.default ]; then
	if [ ! -f ~/.var/app/org.mozilla.firefox/.mozilla/firefox/biual.default/updater.sh ]; then
		curl https://raw.githubusercontent.com/arkenfox/user.js/master/updater.sh > ~/.var/app/org.mozilla.firefox/.mozilla/firefox/biual.default/updater.sh
		chmod +x ~/.var/app/org.mozilla.firefox/.mozilla/firefox/biual.default/updater.sh
	fi

	~/.var/app/org.mozilla.firefox/.mozilla/firefox/biual.default/updater.sh -su
	if ! (flatpak ps | grep -q "org.mozilla.firefox" && pgrep firefox 1>/dev/null 2>&1) then
		arkenfox-prefscleaner
	fi
fi