about summary refs log tree commit diff stats
path: root/modules/home.legacy/conf/firefox/scripts/update_extensions.sh
blob: 86bd843c54517d88d7fdcdf1dcd36ecad848a601 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
#!/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"