diff options
author | Zac Medico <zmedico@gentoo.org> | 2007-09-06 17:14:49 +0000 |
---|---|---|
committer | Zac Medico <zmedico@gentoo.org> | 2007-09-06 17:14:49 +0000 |
commit | ab2bff3134b94f4c7b8971012d7e7f58a87a675e (patch) | |
tree | 602103abc716ed5e42067a57c5478939562bd5fe /bin/etc-update | |
parent | 6c550c2ef169f85e1111f06d167f9c70d98d8470 (diff) | |
download | portage-ab2bff3134b94f4c7b8971012d7e7f58a87a675e.tar.gz portage-ab2bff3134b94f4c7b8971012d7e7f58a87a675e.tar.bz2 portage-ab2bff3134b94f4c7b8971012d7e7f58a87a675e.zip |
change directory to / in case $PWD doesnt exist (trunk r7702)
svn path=/main/branches/2.1.2/; revision=7735
Diffstat (limited to 'bin/etc-update')
-rwxr-xr-x | bin/etc-update | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/bin/etc-update b/bin/etc-update index 27d7bca35..0b0e3dede 100755 --- a/bin/etc-update +++ b/bin/etc-update @@ -1,5 +1,5 @@ #!/bin/bash -# Copyright 1999-2006 Gentoo Foundation +# Copyright 1999-2007 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 # $Id$ @@ -10,6 +10,8 @@ # Leo Lipelis <aeoo@gentoo.org> # Karl Trygve Kalleberg <karltk@gentoo.org> +cd / + if type -P gsed >/dev/null ; then function sed() { gsed "$@"; } fi |