fix empty directories

This commit is contained in:
Thomas Levine 2016-02-28 12:35:27 +00:00
parent 474541051e
commit f42a5a2489
2 changed files with 12 additions and 0 deletions

8
tests/Empty directories Executable file
View File

@ -0,0 +1,8 @@
#!/bin/sh
tmp=$(mktemp -d)
mkdir -p $tmp/test
../urchin $tmp/test
exit_code=$?
rm -R $tmp
exit $exit_code

4
urchin
View File

@ -106,6 +106,10 @@ recurse() {
fi
for test in *; do
if test "$test" = '*' && ! test -e $test; then
# The directory is empty.
break
fi
urchin_source setup
set +e