summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorXiao Pan <gky44px1999@gmail.com>2024-05-26 22:28:26 -0700
committerXiao Pan <gky44px1999@gmail.com>2024-05-26 22:28:26 -0700
commit28507c5f644e7b4737a389577dbd5a7443f538f9 (patch)
treeef090a44dfdb0aa5065c8ebea6377ac38fee8541
parentf34d00c3166a084106f8413ed058a72a324baf3f (diff)
upd consider studio stop dyafk before update arkenfox userjs
-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 () {