Skip to content

Commit

Permalink
Merge pull request #7 from zimbatm/d96939a95d27f45d99f2220f78829b577c…
Browse files Browse the repository at this point in the history
…02be4c

Small fix
  • Loading branch information
Jay Adkisson committed Mar 17, 2012
2 parents b6a960b + d96939a commit 6fc9a22
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion bin/ry
Original file line number Diff line number Diff line change
Expand Up @@ -190,7 +190,9 @@ ry::build() {
# assert_installed <name>
# abort unless the given ruby is installed
assert_installed() {
if [[ ! -d "$RY_LIB/rubies/$1" ]]; then
if [ -z "$1" ]; then
abort "ruby version missing"
elif [[ ! -d "$RY_LIB/rubies/$1" ]]; then
abort "no such ruby: $1"
fi
}
Expand Down

0 comments on commit 6fc9a22

Please sign in to comment.