Skip to content

Commit

Permalink
Merge branch 'bee-cache'
Browse files Browse the repository at this point in the history
* bee-cache:
  bee-cache: New command 'rebuild'
  • Loading branch information
mariux committed Aug 13, 2012
2 parents 36f68c4 + 9a6ece3 commit e362a9b
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions src/bee-cache.sh.in
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,10 @@ function cache_verify() {
return
fi

cache_rebuild
}

function cache_rebuild() {
rm -fr "${BEECACHE_CACHEDIR}"
mkdir -p "${BEECACHE_CACHEDIR}"

Expand Down Expand Up @@ -247,6 +251,9 @@ case "${cmd}" in
grep)
cache_grep "${@}" | cut -d ' ' -f${FIELDS}
;;
rebuild)
cache_rebuild
;;
update)
cache_update "${@}"
;;
Expand Down

0 comments on commit e362a9b

Please sign in to comment.