From 78b5fb759016a0b3b0da96137f633c89154d94d6 Mon Sep 17 00:00:00 2001 From: Ulrich Müller Date: Sat, 15 Sep 2012 20:10:31 +0200 Subject: Remove trailing slash from ROOT only if EPREFIX is set. * bin/eselect.in (EROOT): Remove trailing slash from ROOT only if EPREFIX is set. This guarantees that EROOT is equal to ROOT for empty EPREFIX. --- bin/eselect.in | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'bin') diff --git a/bin/eselect.in b/bin/eselect.in index fb1260f..95bc77e 100755 --- a/bin/eselect.in +++ b/bin/eselect.in @@ -43,7 +43,7 @@ ESELECT_KILL_TARGET="$$" # Support variables for Gentoo Prefix EPREFIX="@EPREFIX@" -EROOT="${ROOT%/}${EPREFIX}" +EROOT="${ROOT%${EPREFIX:+/}}${EPREFIX}" # Remove all alias definitions. Unset functions and variables that are # known to cause trouble. -- cgit v1.2.3-65-gdbad