1 |
Author: zmedico |
2 |
Date: 2008-03-28 12:31:37 +0000 (Fri, 28 Mar 2008) |
3 |
New Revision: 9565 |
4 |
|
5 |
Modified: |
6 |
main/branches/2.1.2/bin/doins |
7 |
Log: |
8 |
Strip trailing slashes from directory paths if necessary. (trunk r9487) |
9 |
|
10 |
|
11 |
Modified: main/branches/2.1.2/bin/doins |
12 |
=================================================================== |
13 |
--- main/branches/2.1.2/bin/doins 2008-03-28 12:30:55 UTC (rev 9564) |
14 |
+++ main/branches/2.1.2/bin/doins 2008-03-28 12:31:37 UTC (rev 9565) |
15 |
@@ -50,6 +50,9 @@ |
16 |
continue |
17 |
fi |
18 |
|
19 |
+ while [ "$x" != "${x%/}" ] ; do |
20 |
+ x=${x%/} |
21 |
+ done |
22 |
if [ $x = "${x%/*}" ] ; then |
23 |
pushd "$PWD" >/dev/null |
24 |
else |
25 |
|
26 |
-- |
27 |
gentoo-commits@l.g.o mailing list |