diff options
author | Zac Medico <zmedico@gentoo.org> | 2012-09-02 15:13:24 -0700 |
---|---|---|
committer | Zac Medico <zmedico@gentoo.org> | 2012-09-02 15:13:24 -0700 |
commit | e88ca68ce64a4982e4a09ba8cafdad70fcaa544a (patch) | |
tree | e9dfe866f52236c65cfefd391c3be013dedf149b | |
parent | 50f098aee0282d5294b94c8c3c0074b3126724e6 (diff) | |
download | portage-e88ca68ce64a4982e4a09ba8cafdad70fcaa544a.tar.gz portage-e88ca68ce64a4982e4a09ba8cafdad70fcaa544a.tar.bz2 portage-e88ca68ce64a4982e4a09ba8cafdad70fcaa544a.zip |
ebuild-helpers/bsd/sed: whitespace + quoting
-rwxr-xr-x | bin/ebuild-helpers/bsd/sed | 10 |
1 files 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 |