From 1c555bc3a42dbec89111710ebd42a617789fd602 Mon Sep 17 00:00:00 2001 From: Mike Frysinger Date: Sun, 26 Aug 2007 01:35:33 +0000 Subject: change directory to / in case $PWD doesnt exist svn path=/main/trunk/; revision=7702 --- bin/etc-update | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'bin') 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 # Karl Trygve Kalleberg +cd / + if type -P gsed >/dev/null ; then function sed() { gsed "$@"; } fi -- cgit v1.2.3-1-g7c22