From 9ffef1292f6bd2842e543c1e6162b2dd57cb3535 Mon Sep 17 00:00:00 2001 From: Zac Medico Date: Sun, 21 Sep 2008 15:50:08 +0000 Subject: Always call `cd "$WORKDIR"` to ensure that $CWD is sane whenever possible. svn path=/main/trunk/; revision=11530 --- bin/ebuild.sh | 3 +++ 1 file changed, 3 insertions(+) (limited to 'bin/ebuild.sh') diff --git a/bin/ebuild.sh b/bin/ebuild.sh index 2d87d404a..e0b63d9f1 100755 --- a/bin/ebuild.sh +++ b/bin/ebuild.sh @@ -272,6 +272,9 @@ register_die_hook() { export EBUILD_DEATH_HOOKS="${EBUILD_DEATH_HOOKS} $*" } +# Ensure that $CWD is sane whenever possible. +cd "$WORKDIR" 2>/dev/null + #if no perms are specified, dirs/files will have decent defaults #(not secretive, but not stupid) umask 022 -- cgit v1.2.3-1-g7c22