summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorXiao Pan <gky44px1999@gmail.com>2024-05-10 14:51:31 -0700
committerXiao Pan <gky44px1999@gmail.com>2024-05-10 14:51:31 -0700
commit8a79a5eb1435c887be4b8ed94d79fa4e90af718d (patch)
tree673447cbd5fd3eb05de85bfb95f483a355c9ccf3
parentc8f04cc878e0c89fae9e709bea57bd723c220121 (diff)
upd consider clean firefox profile arkenfox userjs_backups dir
-rwxr-xr-xsh/upd2
1 files changed, 2 insertions, 0 deletions
diff --git a/sh/upd b/sh/upd
index f3838de..229f837 100755
--- a/sh/upd
+++ b/sh/upd
@@ -98,6 +98,8 @@ clean () {
cd "$profile_dir/prefsjs_backups" || exit
# https://stackoverflow.com/a/34862475/9008720
ls -t | tail -n +11 | tr '\n' '\0' | xargs -0 rm --
+ cd "$profile_dir/userjs_backups" || exit
+ ls -t | tail -n +11 | tr '\n' '\0' | xargs -0 rm --
fi
if [ "$hostname" = xyzinsp ] || [ "$hostname" = xyzpp ]; then