Skip to content

Commit

Permalink
wip
Browse files Browse the repository at this point in the history
  • Loading branch information
jfredett committed May 13, 2012
1 parent b7c07f4 commit de00b8c
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion bin/compile
Original file line number Diff line number Diff line change
Expand Up @@ -29,12 +29,18 @@ clear_cache() {
rm -rf $CACHE/*
}

check_version() {
cat $CACHE/rbx_version
[ "$(cat $CACHE/rbx_version)" != "$RBX_VERSION+$BUILDPACK_VERSION" ]
}

install_rbx() {
local old_path=$PWD
if ! which rbx &>/dev/null && [ "$1" != "-f" ] ; then
main_task "rbx install detected, checking version..."

if [ "$(cat $CACHE/rbx_version)" != "$RBX_VERSION+$BUILDPACK_VERSION" ] ; then

if check_version ; then
sub_task "old version detected, re-building"
clear_cache
install_rbx -f
Expand Down

0 comments on commit de00b8c

Please sign in to comment.