summaryrefslogtreecommitdiff
path: root/tool/rmdirs
diff options
context:
space:
mode:
authornobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2010-07-11 08:01:59 +0000
committernobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2010-07-11 08:01:59 +0000
commita3de9759e03f6d10f3e2dda43a4081d0e72fa39b (patch)
treeb9aa340b0fbf3b3bc54848146a727cd9f84b08c5 /tool/rmdirs
parent9d3d606907e3b4b3ac239d7a53d242e6b43f1e5a (diff)
* Makefile.in ({,dist-,real-}clean-ext): should also omit
semicolon when omitting "in WORDS" of FOR-statement. * tool/rmdirs: ditto. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@28615 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'tool/rmdirs')
-rwxr-xr-xtool/rmdirs2
1 files changed, 1 insertions, 1 deletions
diff --git a/tool/rmdirs b/tool/rmdirs
index 1dde99f..6dcf984 100755
--- a/tool/rmdirs
+++ b/tool/rmdirs
@@ -1,5 +1,5 @@
#!/bin/sh
-for dir in "$@"; do
+for dir do
while rmdir "$dir" >/dev/null 2>&1 &&
parent=`expr "$dir" : '\(.*\)/[^/][^/]*'`; do
case "$parent" in