| tadd @smart-live-rebuild to emerupd - scripts - random scripts |
| git clone git://parazyd.org/scripts.git |
| Log |
| Files |
| Refs |
| --- |
| commit b5d53e4b51ab812742d629f26101af6c6ad76c3a |
| parent 1ee8c4a1d369f939220e027476c5ff79433e3038 |
| Author: parazyd |
| Date: Thu, 16 Feb 2017 13:00:43 +0100
add @smart-live-rebuild to emerupd
Diffstat:
M emerupd | 37 +++++++++++++++++++++++++------
M xkcd | 1 +
2 files changed, 31 insertions(+), 7 deletions(-)
--- |
| diff --git a/emerupd b/emerupd |
| t@@ -18,11 +18,34 @@ EOM
}
case "x$1" in
- x1|x-1) sudo eix-sync -a ;;
- x2|x-2) sudo emerge -av --verbose-conflicts --with-bdeps=y --update --newuse --deep @world ;;
- x3|x-3) sudo glsa-check -t all ;;
- x4|x-4) sudo emerge -av --depclean ;;
- x5|x-5) sudo emerge -av @preserved-rebuild ;;
- x6|x-6) sudo revdep-rebuild.sh -v ;;
- *) usage ;;
+ x1|x-1)
+ sudo eix-sync -a
+ ;;
+
+ x2|x-2)
+ sudo emerge -av --verbose-conflicts \
+ --with-bdeps=y --update --newuse \
+ --deep @world && \
+ sudo emerge -av @smart-live-rebuild
+ ;;
+
+ x3|x-3)
+ sudo glsa-check -t all
+ ;;
+
+ x4|x-4)
+ sudo emerge -av --depclean
+ ;;
+
+ x5|x-5)
+ sudo emerge -av @preserved-rebuild
+ ;;
+
+ x6|x-6)
+ sudo revdep-rebuild.sh -v
+ ;;
+
+ *)
+ usage
+ ;;
esac |
| diff --git a/xkcd b/xkcd |
| t@@ -1,6 +1,7 @@
#!/bin/sh
tot="$(curl -s https://xkcd.com/info.0.json | jq '.num')"
+[ -n "$tot" ] || exit 1
rnd="$(shuf -i 1-${tot} -n 1)"
curl -s https://xkcd.com/$rnd/info.0.json | jq '.img' | xargs feh |