about summary refs log blame commit diff stats
path: root/modules/home.legacy/conf/firefox/scripts/update_extensions.sh
blob: 86bd843c54517d88d7fdcdf1dcd36ecad848a601 (plain) (tree)
1
2
3
4
5
6
7
8
9
         
 
             
                                  
                     
                            
                            
                               
                           
                           
   
                                       
                           
                                                                                         
 
         
#!/bin/sh

tmp=$(mktemp)
cat <<EOF | awk '!/^\s*#/' >"$tmp"
    darkreader:navbar
    keepassxc-browser:navbar
    vhack-libredirect:navbar
    torproject-snowflake:navbar
    tridactyl-vim:menupanel
    ublock-origin:menupanel
EOF

# The bin is provided in the devshell;
# The cat execution should be unquoted;
# shellcheck disable=SC2046
generate_extensions $(cat "$tmp") >"$(dirname "$0")"/../config/extensions/extensions.json

rm "$tmp"