From: antarus Date: Sun, 1 Apr 2007 07:09:41 +0000 (-0000) Subject: Fix path and fully qualified paths for bug 172969 X-Git-Tag: gentoolkit-0.2.4.3~129 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=5eb59614cf858ddc0e359eef85173313a90f7d5a;p=gentoolkit.git Fix path and fully qualified paths for bug 172969 svn path=/; revision=384 --- 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}"