summaryrefslogtreecommitdiff
path: root/sh/upd
diff options
context:
space:
mode:
Diffstat (limited to 'sh/upd')
-rwxr-xr-xsh/upd8
1 files changed, 6 insertions, 2 deletions
diff --git a/sh/upd b/sh/upd
index 229f837..e50e32f 100755
--- a/sh/upd
+++ b/sh/upd
@@ -126,16 +126,20 @@ fast () {
}
userjs () {
- kill $(pidof "$BROWSER")
case "$hostname" in
- xyzstudio) profile_dir="$HOME/.mozilla/firefox/dyafk";;
+ xyzstudio)
+ profile_dir="$HOME/.mozilla/firefox/dyafk"
+ sudo systemctl stop dyafk@xyz
+ ;;
*) profile_dir="$HOME/.mozilla/firefox/xxxxxxxx.fly";;
esac
+ kill $(pidof "$BROWSER")
# change working dir for cleaner
cd "$profile_dir" || exit
arkenfox-cleaner -s
# when multiple firefox profiles, it will prompt me to choose, which breaks automation, so I explicitly specify one profile
arkenfox-updater -s -p "$profile_dir"
+ [ "$hostname" = xyzstudio ] && sudo systemctl start dyafk@xyz
}
misc () {