зеркало из https://github.com/github/ruby.git
12 строки
238 B
Plaintext
12 строки
238 B
Plaintext
|
#!/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
|