aboutsummaryrefslogtreecommitdiff
path: root/paludis/repositories/e/ebuild/ebuild.bash
diff options
context:
space:
mode:
Diffstat (limited to 'paludis/repositories/e/ebuild/ebuild.bash')
-rwxr-xr-xpaludis/repositories/e/ebuild/ebuild.bash2
1 files changed, 2 insertions, 0 deletions
diff --git a/paludis/repositories/e/ebuild/ebuild.bash b/paludis/repositories/e/ebuild/ebuild.bash
index c7af2cb79..c81cf73c2 100755
--- a/paludis/repositories/e/ebuild/ebuild.bash
+++ b/paludis/repositories/e/ebuild/ebuild.bash
@@ -52,6 +52,8 @@ fi
shopt -s expand_aliases
shopt -s extglob
+export ROOT="${ROOT//+(\/)//}"
+
export EBUILD_PROGRAM_NAME="$0"
if [[ -n "${PALUDIS_EBUILD_DIR_FALLBACK}" ]] ; then