summaryrefslogtreecommitdiff
path: root/trunk/src
diff options
context:
space:
mode:
Diffstat (limited to 'trunk/src')
-rwxr-xr-xtrunk/src/revdep-rebuild/revdep-rebuild4
1 files changed, 3 insertions, 1 deletions
diff --git a/trunk/src/revdep-rebuild/revdep-rebuild b/trunk/src/revdep-rebuild/revdep-rebuild
index 3713810..b41fffb 100755
--- a/trunk/src/revdep-rebuild/revdep-rebuild
+++ b/trunk/src/revdep-rebuild/revdep-rebuild
@@ -91,7 +91,9 @@ unset SEARCH_DIRS
for i in $(echo $PRELIMINARY_SEARCH_DIRS)
do
[ "$i" = "-*" ] && break
- SEARCH_DIRS="$(echo $SEARCH_DIRS $(readlink -f $i))"
+ # Append a / at the end so that links and directories are treated the same by find
+ # Remove any existing trailing slashes to prevent double-slashes
+ SEARCH_DIRS="$(echo $SEARCH_DIRS ${i/%\//}/)"
done
unset SEARCH_DIRS_MASK