Permalink
Browse files

use the shell builtin [[ instead of [.

  • Loading branch information...
1 parent 2750a2f commit 92d4288c982db0fc62d89ebe6f6ef9b98baaacb9 @jneen committed Mar 17, 2012
Showing with 1 addition and 1 deletion.
  1. +1 −1 bin/ry
View
2 bin/ry
@@ -190,7 +190,7 @@ ry::build() {
# assert_installed <name>
# abort unless the given ruby is installed
assert_installed() {
- if [ -z "$1" ]; then
+ if [[ -z "$1" ]]; then
abort "ruby version missing"
elif [[ ! -d "$RY_LIB/rubies/$1" ]]; then
abort "no such ruby: $1"

0 comments on commit 92d4288

Please sign in to comment.