summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorXiao Pan <gky44px1999@gmail.com>2024-05-10 14:25:55 -0700
committerXiao Pan <gky44px1999@gmail.com>2024-05-10 14:25:55 -0700
commit6692c47255d3dfbdbe668f6ddcb8e5d7b6aa254c (patch)
treef827660d3d3a1320fb7efc9e6e1dde4977bdb555
parent14178bdc7b89676dca4ce7a5ce533bd15de120d6 (diff)
upd consider studio dyafk firefox profile arkenfox userjs update
-rwxr-xr-xsh/upd10
1 files changed, 7 insertions, 3 deletions
diff --git a/sh/upd b/sh/upd
index e2a4ee0..693f323 100755
--- a/sh/upd
+++ b/sh/upd
@@ -8,7 +8,7 @@ all () {
qb
fi
[ "$hostname" = xyzinsp ] && music
- if [ "$hostname" = xyzinsp ] || [ "$hostname" = xyzpp ]; then
+ if [ "$hostname" = xyzinsp ] || [ "$hostname" = xyzpp ] || [ "$hostname" = xyzstudio ]; then
userjs
fi
}
@@ -118,11 +118,15 @@ fast () {
userjs () {
kill $(pidof "$BROWSER")
+ case "$hostname" in
+ xyzstudio) profile_dir="$HOME/.mozilla/firefox/dyafk";;
+ *) profile_dir="$HOME/.mozilla/firefox/xxxxxxxx.fly";;
+ esac
# change working dir for cleaner
- cd "$HOME/.mozilla/firefox/xxxxxxxx.fly" || exit
+ 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 "$HOME/.mozilla/firefox/xxxxxxxx.fly"
+ arkenfox-updater -s -p "$profile_dir"
}
misc () {