]>
Commit | Line | Data |
---|---|---|
f993e922 | 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" | |
82d21c3c | 4 | if ! command -v curl >/dev/null; then |
f993e922 | 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 | |
f4a5f003 | 12 | echo Updated! |
82d21c3c | 13 | diff user.js.bak user.js 2>/dev/null |