Permalink
Browse files

minor fixes to ry::install

  • Loading branch information...
1 parent 8eacc24 commit e472870b39e64b67bc03c06cbfbf5e8738908c29 @perlguy perlguy committed May 16, 2012
Showing with 4 additions and 4 deletions.
  1. +4 −4 bin/ry
View
8 bin/ry
@@ -119,14 +119,14 @@ ry::install() {
# if you've got ruby-build, and you've named one of its recipes,
# use that instead :)
+ [[ -z "$name" ]] && name="$url"
+ [[ -z "$url" ]] && abort "no URL given. usage: ry install <url> <name>"
+ local dir="$RY_LIB/rubies/$name"
if exists? ruby-build \
&& ruby-build --definitions | grep -qx "$url"; then
- [[ -z "$name" ]] && name="$url"
- ruby-build "$url" "$RY_LIB/rubies/$name"
+ ruby-build "$url" "$dir"
else
- [[ -z "$url" ]] && abort "no URL given. usage: ry install <name> <url>"
- local dir="$RY_LIB/rubies/$name"
local logpath="/tmp/ry.log"
# create build directory

0 comments on commit e472870

Please sign in to comment.