mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
9d3d606907
FOR-statement is not allowed in /bin/sh on Solaris. fore-ported r28609 from 1.9.2. * tool/rmdirs: ditto. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@28614 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
11 lines
246 B
Bash
Executable file
11 lines
246 B
Bash
Executable file
#!/bin/sh
|
|
for dir in "$@"; do
|
|
while rmdir "$dir" >/dev/null 2>&1 &&
|
|
parent=`expr "$dir" : '\(.*\)/[^/][^/]*'`; do
|
|
case "$parent" in
|
|
. | .. | "$dir") break;;
|
|
*) dir="$parent";;
|
|
esac
|
|
done
|
|
done
|
|
true
|