mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
12 lines
238 B
Text
12 lines
238 B
Text
|
#!/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
|