diff options
author | Xiao Pan <gky44px1999@gmail.com> | 2024-05-26 22:28:26 -0700 |
---|---|---|
committer | Xiao Pan <gky44px1999@gmail.com> | 2024-05-26 22:28:26 -0700 |
commit | 28507c5f644e7b4737a389577dbd5a7443f538f9 (patch) | |
tree | ef090a44dfdb0aa5065c8ebea6377ac38fee8541 | |
parent | f34d00c3166a084106f8413ed058a72a324baf3f (diff) |
upd consider studio stop dyafk before update arkenfox userjs
-rwxr-xr-x | sh/upd | 8 |
1 files changed, 6 insertions, 2 deletions
@@ -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 () { |