diff options
Diffstat (limited to 'bin/doenvd')
-rwxr-xr-x | bin/doenvd | 11 |
1 files changed, 5 insertions, 6 deletions
diff --git a/bin/doenvd b/bin/doenvd index 01197a07d..5232ed908 100755 --- a/bin/doenvd +++ b/bin/doenvd @@ -3,13 +3,12 @@ # Distributed under the terms of the GNU General Public License v2 # $Id: /var/cvsroot/gentoo-src/portage/bin/doenvd,v 1.2.2.1 2005/01/13 04:51:56 vapier Exp $ -if [ ${#} -lt 1 ] ; then - echo "doenvd: at least one argument needed" +if [[ $# -lt 1 ]] ; then + echo "$0: at least one argument needed" 1>&2 exit 1 fi -tmp_INSDESTTREE="${INSDESTTREE}" -INSDESTTREE=/etc/env.d/ +exec \ +env \ +INSDESTTREE="/etc/env.d/" \ doins "$@" -INSDESTTREE="${tmp_INSDESTTREE}" -unset tmp_INSDESTTREE |