X-Git-Url: https://git.arvados.org/arvados.git/blobdiff_plain/c8060b94c485d5bf0e500d2321793cd56db4c856..4ec57745d2106e955fea4442c9eccb2fce7246c4:/docker/build.sh diff --git a/docker/build.sh b/docker/build.sh index add3194f52..cbcc840667 100755 --- a/docker/build.sh +++ b/docker/build.sh @@ -1,11 +1,14 @@ #! /bin/bash # make sure Ruby 1.9.3 is installed before proceeding -if ! ruby -v 2>/dev/null | grep '1\.9\.3' > /dev/null +if ! ruby -e 'exit RUBY_VERSION >= "1.9.3"' 2>/dev/null then - echo "Installing Ruby. You may be required to enter your password." + echo "Installing Arvados requires at least Ruby 1.9.3." + echo "You may need to enter your password." + read -p "Press Ctrl-C to abort, or else press ENTER to install ruby1.9.3 and continue. " unused + sudo apt-get update sudo apt-get -y install ruby1.9.3 fi -./build.rb $* +build_tools/build.rb $*