diff options
| author | antarus <antarus@gentoo.org> | 2007-04-01 07:09:41 +0000 |
|---|---|---|
| committer | antarus <antarus@gentoo.org> | 2007-04-01 07:09:41 +0000 |
| commit | 5eb59614cf858ddc0e359eef85173313a90f7d5a (patch) | |
| tree | f92ff8abf94f9cd8859ba7b2746d22492821cbcd /trunk/src/eread | |
| parent | fd1688deb6fa426e43f4b1b137eba42de91d4495 (diff) | |
| download | gentoolkit-5eb59614cf858ddc0e359eef85173313a90f7d5a.tar.gz | |
Fix path and fully qualified paths for bug 172969
svn path=/; revision=384
Diffstat (limited to 'trunk/src/eread')
| -rwxr-xr-x | trunk/src/eread/eread | 12 |
1 files changed, 8 insertions, 4 deletions
diff --git a/trunk/src/eread/eread b/trunk/src/eread/eread index 69db604..2097460 100755 --- a/trunk/src/eread/eread +++ b/trunk/src/eread/eread @@ -6,6 +6,10 @@ # Author: Donnie Berkholz <spyderous@gentoo.org> # Updated by: Uwe Klosa <uwe.klosa@gmail.com> +# set decent PATH for bug 172969 + +PATH=/usr/bin:/bin:${PATH} + # Set ELOGDIR PORT_LOGDIR="$(portageq envvar PORT_LOGDIR)" [ "$PORT_LOGDIR" = "" ] && PORT_LOGDIR="/var/log/portage" @@ -18,14 +22,14 @@ if [ ! -d "$ELOGDIR" ]; then fi # Use the pager from the users environment -[ -z "$PAGER" ] && PAGER="/usr/bin/less" +[ -z "$PAGER" ] && PAGER="less" # Set up select prompt PS3="Choice? " select_loop() { - ANY_FILES=$(/usr/bin/find . -type f) - ANY_FILES=$(echo ${ANY_FILES} | /bin/sed -e "s:\./::g") + ANY_FILES=$(find . -type f) + ANY_FILES=$(echo ${ANY_FILES} | sed -e "s:\./::g") if [[ -z ${ANY_FILES} ]]; then echo "No log items to read" @@ -54,7 +58,7 @@ select_loop() { break ;; y|Y) - /usr/bin/rm -f ${FILE} + rm -f ${FILE} SUCCESS=$? if [[ ${SUCCESS} = 0 ]]; then echo "Deleted ${FILE}" |
