From ab2bff3134b94f4c7b8971012d7e7f58a87a675e Mon Sep 17 00:00:00 2001 From: Zac Medico Date: Thu, 6 Sep 2007 17:14:49 +0000 Subject: [PATCH] change directory to / in case $PWD doesnt exist (trunk r7702) svn path=/main/branches/2.1.2/; revision=7735 --- bin/etc-update | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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 -- 2.26.2