Commit 2680d6a0 authored by Mike Hibler's avatar Mike Hibler
Browse files

Do "rm -rf" to remove a directory, fix a typo.

The script still blows up on a glob of an empty directory.
parent 4ac3512b
......@@ -85,9 +85,9 @@ gatherinv_main() {
if [ -d ${INVDIR}/$host ] ; then
owd=$PWD
cd ${INVDIR}/$host
[[ -d full ]] && ( mkdir -p .full ; mv -f full/* .full ; rm -f full $host.full )
[[ -d diff ]] && ( mkdir -p .diff ; mv -f diff/* .diff ; rm -f diff $host.diff )
[[ -d tbdb ]] && ( mkdir -p .tbdb ; mv -f tbdb/* .tbdb ; rm -f tdbd $host )
[[ -d full ]] && ( mkdir -p .full ; mv -f full/* .full ; rm -rf full $host.full )
[[ -d diff ]] && ( mkdir -p .diff ; mv -f diff/* .diff ; rm -rf diff $host.diff )
[[ -d tbdb ]] && ( mkdir -p .tbdb ; mv -f tbdb/* .tbdb ; rm -rf tbdb $host )
cd $owd
fi
# end XXX
......@@ -153,8 +153,3 @@ gatherinv_main() {
}
gatherinv_main $0
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment