From: fuzzyray Date: Sun, 2 Apr 2006 22:17:50 +0000 (-0000) Subject: Remove extra slashes from SEARCH_DIRS path X-Git-Tag: gentoolkit-0.2.4.3~217 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=c762665955c85921e8655510c1de0828fe5045b9;p=gentoolkit.git Remove extra slashes from SEARCH_DIRS path svn path=/; revision=296 --- diff --git a/trunk/src/revdep-rebuild/revdep-rebuild b/trunk/src/revdep-rebuild/revdep-rebuild index 09f6206..4a14ede 100755 --- a/trunk/src/revdep-rebuild/revdep-rebuild +++ b/trunk/src/revdep-rebuild/revdep-rebuild @@ -113,6 +113,8 @@ do # Remove any existing trailing slashes to prevent double-slashes SEARCH_DIRS="$(echo $SEARCH_DIRS ${i/%\//}/)" done +# Remove any double-slashes from the path +SEARCH_DIRS="$(echo $SEARCH_DIRS | sed 's:/\+:/:g')" unset SEARCH_DIRS_MASK for i in $(echo $PRELIMINARY_SEARCH_DIRS_MASK)