diff options
| author | Luke Smith <luke@lukesmith.xyz> | 2023-02-02 12:05:33 -0500 |
|---|---|---|
| committer | Luke Smith <luke@lukesmith.xyz> | 2023-02-02 12:05:33 -0500 |
| commit | c9234676636b3c48ff5767b245790cd58b17085a (patch) | |
| tree | 805b3e937a69239c6afd469729b2827f81a391bb /.local/bin/arkenfox-auto-update | |
| parent | 3cee7b8844f8f01b36e2be4a04095e06042c50d2 (diff) | |
| download | eibhear-c9234676636b3c48ff5767b245790cd58b17085a.tar.gz eibhear-c9234676636b3c48ff5767b245790cd58b17085a.tar.zst eibhear-c9234676636b3c48ff5767b245790cd58b17085a.zip | |
add arkenfox updater wrapper
Diffstat (limited to '.local/bin/arkenfox-auto-update')
| -rwxr-xr-x | .local/bin/arkenfox-auto-update | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/.local/bin/arkenfox-auto-update b/.local/bin/arkenfox-auto-update new file mode 100755 index 0000000..1802965 --- /dev/null +++ b/.local/bin/arkenfox-auto-update @@ -0,0 +1,20 @@ +#!/bin/sh + +# A wrapper for the arkenfox-updater that runs it on all pre-existing Arkenfox +# user.js files on the machine. + +# On installation of LARBS, this file is copied to /usr/local/lib/ where it is +# run by a pacman hook set up. The user should not have to run this manually. + +# Search for all Firefox and Librewolf profiles using Arkenfox. +profiles="$(grep -H "arkenfox user.js" \ + /home/*/.librewolf/*.default-release/user.js \ + /home/*/.mozilla/firefox/*.default-release/user.js)" + +IFS=' +' + +# Update each found profile. +for profile in $profiles; do + arkenfox-updater -p "${profile%%/user.js*}" -s +done |
