summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMike Frysinger <vapier@gentoo.org>2007-08-26 01:35:33 +0000
committerMike Frysinger <vapier@gentoo.org>2007-08-26 01:35:33 +0000
commit1c555bc3a42dbec89111710ebd42a617789fd602 (patch)
tree952242017335ba32a058008c38dfb35d502dbccc
parent41b2ed875e55c9b3ee4afc8b2ec1a35f4edf823b (diff)
downloadportage-1c555bc3a42dbec89111710ebd42a617789fd602.tar.gz
portage-1c555bc3a42dbec89111710ebd42a617789fd602.tar.bz2
portage-1c555bc3a42dbec89111710ebd42a617789fd602.zip
change directory to / in case $PWD doesnt exist
svn path=/main/trunk/; revision=7702
-rwxr-xr-xbin/etc-update4
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