Skip to content

Commit

Permalink
bee-cache-update: Create empty INVENTORY if BEE_METADIR does not exist
Browse files Browse the repository at this point in the history
This fixes issue #150
  • Loading branch information
mariux committed Aug 22, 2012
1 parent da5e34a commit 1270cc4
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/bee-cache-update.sh.in
Original file line number Diff line number Diff line change
Expand Up @@ -126,6 +126,11 @@ function create_inventory()

print_info "creating ${INVENTORYFILE} .."

if [ ! -d "${BEE_METADIR}" ] ; then
touch ${INVENTORYFILE}
return 0
fi

${BEE_LIBEXECDIR}/bee/bee-cache-inventory \
${BEE_METADIR} \
| sort -r -k 8 -k 1 \
Expand Down

0 comments on commit 1270cc4

Please sign in to comment.