Remove extra slashes from SEARCH_DIRS path
authorfuzzyray <fuzzyray@gentoo.org>
Sun, 2 Apr 2006 22:17:50 +0000 (22:17 -0000)
committerfuzzyray <fuzzyray@gentoo.org>
Sun, 2 Apr 2006 22:17:50 +0000 (22:17 -0000)
svn path=/; revision=296

trunk/src/revdep-rebuild/revdep-rebuild

index 09f6206941763eeb248c9abf9847c1d38b6f2daa..4a14edebc03e2a3628fa1393d00e60379ad395a6 100755 (executable)
@@ -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)