Skip to content

Commit

Permalink
beesh: added require_version() to check for bee version in bee-file
Browse files Browse the repository at this point in the history
  • Loading branch information
mariux committed Nov 1, 2011
1 parent e4ad654 commit a0600c9
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions src/beesh.sh.in
Original file line number Diff line number Diff line change
Expand Up @@ -104,6 +104,13 @@ function show_help() {
EOF
}

function require_version() {
if @BINDIR@/beeversion "${VERSION}" -lt "${1}" ; then
print_error "this bee-file requires at least bee v${1} .."
exit 1;
fi
}

function check_repositories() {
r=0
print_info "==> checking repositories .."
Expand Down

0 comments on commit a0600c9

Please sign in to comment.