Skip to content

Commit

Permalink
bee-remove: speed up the check for removable unused directories
Browse files Browse the repository at this point in the history
  • Loading branch information
mariux committed Aug 17, 2011
1 parent ef6f8ae commit 18310fb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/bee-remove.sh.in
Original file line number Diff line number Diff line change
Expand Up @@ -103,7 +103,7 @@ do_remove() {
if [ "${BEEMETAFORMAT}" = "2" ] ; then
dirs=$(for var in ${!PKG_*} ; do eval echo \${${var}} ; done | sort -ur)
for dir in ${dirs} ; do
if [ -d "${dir}" -a -z "$(${BEE_LIBEXECDIR}/bee/bee.d/bee-query ${dir})" ] ; then
if [ -d "${dir}" -a -z "$(${BEE_LIBEXECDIR}/bee/bee.d/bee-query ${dir} | head -1)" ] ; then
${NOOP:+echo} rmdir ${dir}
fi
done
Expand Down

0 comments on commit 18310fb

Please sign in to comment.