]> git.sev.monster Git - dotfiles.git/blob - firefox/user-js-updater.sh
git alias compatibility with busybox xargs
[dotfiles.git] / firefox / user-js-updater.sh
1 #!/bin/sh
2 mv user.js user.js.bak >/dev/null 2>&1
3 ghacksjs="https://raw.githubusercontent.com/ghacksuserjs/ghacks-user.js/master/user.js"
4 if ! command -v curl >/dev/null; then
5     # Based on busybox-compatible wget
6     wget -q "$ghacksjs"
7 else
8     curl -sSO "$ghacksjs"
9 fi
10 echo >> user.js
11 cat user-overrides.js >> user.js
12 diff user.js.bak user.js 2>/dev/null
This page took 0.039885 seconds and 4 git commands to generate.