Skip to content

Commit 220e278

Browse files
committed
Add a failure message if $ruby_build_dir is missing.
1 parent d005c1a commit 220e278

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

bin/ruby-install

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ fi
4545

4646
download_patches || fail "Fetching patches $patches failed!"
4747
apply_patches || fail "Patching $ruby $ruby_version failed!"
48-
cd "$ruby_build_dir"
48+
cd "$ruby_build_dir" || fail "ruby build directory is missing: $ruby_build_dir"
4949
configure_ruby || fail "Configuration of $ruby $ruby_version failed!"
5050
clean_ruby || fail "Cleaning $ruby $ruby_version failed!"
5151
compile_ruby || fail "Compiling $ruby $ruby_version failed!"

0 commit comments

Comments
 (0)