converted tabs to spaces, updated LESS cmdline override
This commit is contained in:
@@ -49,45 +49,45 @@ EO
|
||||
|
||||
clone_repos() {
|
||||
cd "$BASE"
|
||||
|
||||
|
||||
if [[ -d "$BASE/mitx/.git" ]]; then
|
||||
output "Pulling mitx"
|
||||
cd "$BASE/mitx"
|
||||
git pull >>$LOG
|
||||
else
|
||||
output "Cloning mitx"
|
||||
if [[ -d "$BASE/mitx" ]]; then
|
||||
mv "$BASE/mitx" "${BASE}/mitx.bak.$$"
|
||||
fi
|
||||
git clone git@github.com:MITx/mitx.git >>$LOG
|
||||
fi
|
||||
|
||||
cd "$BASE"
|
||||
if [[ -d "$BASE/askbot-devel/.git" ]]; then
|
||||
output "Pulling askbot-devel"
|
||||
cd "$BASE/askbot-devel"
|
||||
git pull >>$LOG
|
||||
else
|
||||
output "Cloning askbot-devel"
|
||||
if [[ -d "$BASE/askbot-devel" ]]; then
|
||||
mv "$BASE/askbot-devel" "${BASE}/askbot-devel.bak.$$"
|
||||
fi
|
||||
git clone git@github.com:MITx/askbot-devel >>$LOG
|
||||
fi
|
||||
|
||||
cd "$BASE"
|
||||
output "Pulling mitx"
|
||||
cd "$BASE/mitx"
|
||||
git pull >>$LOG
|
||||
else
|
||||
output "Cloning mitx"
|
||||
if [[ -d "$BASE/mitx" ]]; then
|
||||
mv "$BASE/mitx" "${BASE}/mitx.bak.$$"
|
||||
fi
|
||||
git clone git@github.com:MITx/mitx.git >>$LOG
|
||||
fi
|
||||
|
||||
cd "$BASE"
|
||||
if [[ -d "$BASE/askbot-devel/.git" ]]; then
|
||||
output "Pulling askbot-devel"
|
||||
cd "$BASE/askbot-devel"
|
||||
git pull >>$LOG
|
||||
else
|
||||
output "Cloning askbot-devel"
|
||||
if [[ -d "$BASE/askbot-devel" ]]; then
|
||||
mv "$BASE/askbot-devel" "${BASE}/askbot-devel.bak.$$"
|
||||
fi
|
||||
git clone git@github.com:MITx/askbot-devel >>$LOG
|
||||
fi
|
||||
|
||||
cd "$BASE"
|
||||
if [[ -d "$BASE/data/.hg" ]]; then
|
||||
output "Pulling data"
|
||||
cd "$BASE/data"
|
||||
hg pull >>$LOG
|
||||
hg update >>$LOG
|
||||
else
|
||||
output "Cloning data"
|
||||
if [[ -d "$BASE/data" ]]; then
|
||||
mv "$BASE/data" "${BASE}/data.bak.$$"
|
||||
fi
|
||||
hg clone ssh://hg-content@gp.mitx.mit.edu/data >>$LOG
|
||||
fi
|
||||
output "Pulling data"
|
||||
cd "$BASE/data"
|
||||
hg pull >>$LOG
|
||||
hg update >>$LOG
|
||||
else
|
||||
output "Cloning data"
|
||||
if [[ -d "$BASE/data" ]]; then
|
||||
mv "$BASE/data" "${BASE}/data.bak.$$"
|
||||
fi
|
||||
hg clone ssh://hg-content@gp.mitx.mit.edu/data >>$LOG
|
||||
fi
|
||||
}
|
||||
|
||||
PROG=${0##*/}
|
||||
@@ -237,9 +237,7 @@ output "Installing rvm and ruby"
|
||||
curl -sL get.rvm.io | bash -s stable
|
||||
source $RUBY_DIR/scripts/rvm
|
||||
# skip the intro
|
||||
export LESS="-E"
|
||||
rvm install $RUBY_VER
|
||||
unset LESS
|
||||
LESS="-E" rvm install $RUBY_VER
|
||||
virtualenv "$PYTHON_DIR"
|
||||
source $PYTHON_DIR/bin/activate
|
||||
output "Installing gem bundler"
|
||||
|
||||
Reference in New Issue
Block a user