Navigation Menu

Skip to content

Commit

Permalink
Bugfix: Ensure archives directory exists for latest.
Browse files Browse the repository at this point in the history
  • Loading branch information
wayneeseguin committed Jan 4, 2011
1 parent f3b0375 commit fe8dcd1
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 3 deletions.
9 changes: 7 additions & 2 deletions binscripts/rvm-update-latest
@@ -1,14 +1,19 @@
#!/usr/bin/env bash

set -o errtrace
set -o errexit

export PS4='+[${BASH_SOURCE}] : ${LINENO} : ${FUNCNAME[0]:+${FUNCNAME[0]}() $ }'

rvm_ignore_rvmrc=${rvm_ignore_rvmrc:-0}
if [[ $rvm_ignore_rvmrc -eq 0 ]]; then
[[ -s /etc/rvmrc ]] && source /etc/rvmrc
[[ -s "$HOME/.rvmrc" ]] && source "$HOME/.rvmrc"
fi

rvm_path="${rvm_path:-$HOME/.rvm}"
mkdir -p $rvm_path/src/
cd $rvm_path/src
mkdir -p "$rvm_path/src/" "$rvm_path/src/archives"
cd "$rvm_path/src"

stable_version=$(curl -B http://rvm.beginrescueend.com/releases/stable-version.txt 2>/dev/null)
stable_md5=$(curl -B http://rvm.beginrescueend.com/releases/rvm-${stable_version}.tar.gz.md5 2>/dev/null)
Expand Down
2 changes: 1 addition & 1 deletion scripts/get
Expand Up @@ -111,7 +111,7 @@ get_head()

builtin cd "${rvm_src_path:-"$rvm_path/src"}" && \
( git clone --depth 1 git://github.com/wayneeseguin/rvm.git || \
git clone https://github.com/wayneeseguin/rvm.git )&& \
git clone https://github.com/wayneeseguin/rvm.git ) && \
builtin cd rvm/ && ./scripts/install
fi
)
Expand Down

0 comments on commit fe8dcd1

Please sign in to comment.