about summary refs log tree commit diff stats
path: root/sys/nixpkgs/pkgs/generate_moz_extension/examples/generate_extensions.sh
blob: 96802992f637c41163f1d47448d6f496cf30fe63 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
#!/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 cat execution should be unquoted;
# shellcheck disable=SC2046
cargo run -- $(cat "$tmp")

rm "$tmp"