From 5eb59614cf858ddc0e359eef85173313a90f7d5a Mon Sep 17 00:00:00 2001 From: antarus Date: Sun, 1 Apr 2007 07:09:41 +0000 Subject: [PATCH] Fix path and fully qualified paths for bug 172969 svn path=/; revision=384 --- trunk/src/eread/eread | 12 ++++++++---- 1 file 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 # Updated by: Uwe Klosa +# 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}" -- 2.26.2