Skip to content

Commit e8fe40d

Browse files
authored
Merge pull request jruby#9217 from headius/better_broken_jruby_home_error
Add an error for running jruby.sh from a broken JRUBY_HOME
2 parents d1e39d9 + e5fa991 commit e8fe40d

1 file changed

Lines changed: 5 additions & 0 deletions

File tree

bin/jruby.sh

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -671,6 +671,11 @@ for j in "$JRUBY_HOME"/lib/jruby.jar "$JRUBY_HOME"/lib/jruby-complete.jar; do
671671
fi
672672
jruby_jar="$j"
673673
done
674+
675+
if [ -z "${jruby_jar-}" ]; then
676+
echo "JRUBY_HOME at ${JRUBY_HOME} contains no lib/jruby.jar, exiting."
677+
exit 1
678+
fi
674679
readonly jruby_jar
675680

676681
if $cygwin; then

0 commit comments

Comments
 (0)