mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
a3de9759e0
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
11 lines
237 B
Bash
Executable file
11 lines
237 B
Bash
Executable file
#!/bin/sh
|
|
for dir do
|
|
while rmdir "$dir" >/dev/null 2>&1 &&
|
|
parent=`expr "$dir" : '\(.*\)/[^/][^/]*'`; do
|
|
case "$parent" in
|
|
. | .. | "$dir") break;;
|
|
*) dir="$parent";;
|
|
esac
|
|
done
|
|
done
|
|
true
|