X-Git-Url: https://git.sev.monster/~sev/dotfiles.git/blobdiff_plain/fef7b7c4499adc75aaa6fc077c68b216f2e250cb..62504b1f48cf4c4d10c85533b71b7301a852cd87:/firefox/user-js-updater.sh?ds=sidebyside diff --git a/firefox/user-js-updater.sh b/firefox/user-js-updater.sh index 6e17577..a7390d4 100755 --- a/firefox/user-js-updater.sh +++ b/firefox/user-js-updater.sh @@ -1,7 +1,7 @@ #!/bin/sh mv user.js user.js.bak >/dev/null 2>&1 ghacksjs="https://raw.githubusercontent.com/ghacksuserjs/ghacks-user.js/master/user.js" -if ! command -v curl; then +if ! command -v curl >/dev/null; then # Based on busybox-compatible wget wget -q "$ghacksjs" else @@ -9,3 +9,5 @@ else fi echo >> user.js cat user-overrides.js >> user.js +echo Updated! +diff user.js.bak user.js 2>/dev/null