diff options
author | Ulrich Müller <ulm@gentoo.org> | 2009-05-20 06:07:50 +0000 |
---|---|---|
committer | Ulrich Müller <ulm@gentoo.org> | 2009-05-20 06:07:50 +0000 |
commit | 84f15af402d9d0e1057243259542ce94cf914df0 (patch) | |
tree | 34b0f445a54fe91dcda9a537ff6fcfff80005421 | |
parent | Don't hardcode /bin/bash in order to be more Prefix-friendly. (diff) | |
download | eselect-84f15af402d9d0e1057243259542ce94cf914df0.tar.gz eselect-84f15af402d9d0e1057243259542ce94cf914df0.tar.bz2 eselect-84f15af402d9d0e1057243259542ce94cf914df0.zip |
Output a message if there are no news items to read.
svn path=/trunk/; revision=553
-rw-r--r-- | ChangeLog | 3 | ||||
-rw-r--r-- | configure.ac | 1 | ||||
-rw-r--r-- | modules/news-tng.eselect | 1 |
3 files changed, 4 insertions, 1 deletions
@@ -1,5 +1,8 @@ 2009-05-19 Ulrich Mueller <ulm@gentoo.org> + * modules/news-tng.eselect (do_read): Output a message if there + are no news items to read. + * bin/eselect.in: Don't hardcode /bin/bash; use configured path instead, as requested by Fabian Groffen <grobian@gentoo.org>. * bin/Makefile.am (dosed): Also substitute BASH. Use at signs diff --git a/configure.ac b/configure.ac index 329f24b..d6a6726 100644 --- a/configure.ac +++ b/configure.ac @@ -85,4 +85,3 @@ AC_OUTPUT(Makefile bin/Makefile libs/Makefile modules/Makefile) - diff --git a/modules/news-tng.eselect b/modules/news-tng.eselect index 54d4a07..1be4ea5 100644 --- a/modules/news-tng.eselect +++ b/modules/news-tng.eselect @@ -186,6 +186,7 @@ do_read() { seq="${seq} ${i}" done set -- ${seq} + [[ $# -eq 0 && -z ${raw} ]] && echo "No news is good news." fi for i in "$@"; do |