Skip to content

Commit

Permalink
Handle wrong RUBYPICK env value properly
Browse files Browse the repository at this point in the history
  • Loading branch information
Bohuslav Kabrda committed Jan 22, 2013
1 parent 9e316c2 commit 8aa0ca1
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions ruby
Expand Up @@ -13,10 +13,10 @@ done

# allow choosing interpreter by RUBYPICK env variable
if [ -n "$RUBYPICK" ]; then
if [ -n ${INTERPRETER_LIST[$RUBYPICK]} ]; then
if [ -n "${INTERPRETER_LIST[$RUBYPICK]}" ]; then
INTERPRETER=${INTERPRETER_LIST[$RUBYPICK]}
else
echo "Wrong" >&2
echo "Wrong value of RUBYPICK env variable. Ignoring." >&2
fi
fi

Expand Down

0 comments on commit 8aa0ca1

Please sign in to comment.