From e88ca68ce64a4982e4a09ba8cafdad70fcaa544a Mon Sep 17 00:00:00 2001 From: Zac Medico Date: Sun, 2 Sep 2012 15:13:24 -0700 Subject: ebuild-helpers/bsd/sed: whitespace + quoting --- bin/ebuild-helpers/bsd/sed | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/bin/ebuild-helpers/bsd/sed b/bin/ebuild-helpers/bsd/sed index cc447696d..01b88471d 100755 --- a/bin/ebuild-helpers/bsd/sed +++ b/bin/ebuild-helpers/bsd/sed @@ -5,23 +5,23 @@ scriptpath=${BASH_SOURCE[0]} scriptname=${scriptpath##*/} -if [[ sed == ${scriptname} ]] && [[ -n ${ESED} ]]; then +if [[ sed == ${scriptname} && -n ${ESED} ]]; then exec ${ESED} "$@" elif type -P g${scriptname} > /dev/null ; then exec g${scriptname} "$@" else old_IFS="${IFS}" IFS=":" - + for path in $PATH; do if [[ -x ${path}/${scriptname} ]]; then [[ ${path}/${scriptname} -ef ${scriptpath} ]] && continue - exec ${path}/${scriptname} "$@" + exec "${path}/${scriptname}" "$@" exit 0 fi done - + IFS="${old_IFS}" fi - + exit 1 -- cgit v1.2.3-1-g7c22