File tree Expand file tree Collapse file tree 1 file changed +7
-7
lines changed Expand file tree Collapse file tree 1 file changed +7
-7
lines changed Original file line number Diff line number Diff line change 14
14
15
15
source " $( dirname $SELF_PATH ) /../common.sh.inc"
16
16
17
- # Use homedir of the RUBY_BIN executable if provided
18
- cd " $( jt ruby -e ' puts Truffle::Boot.ruby_home' ) "
19
-
20
17
function check_launchers() {
21
18
if [ -n " $2 " ]
22
19
then
@@ -41,6 +38,11 @@ function check_in_dir() {
41
38
}
42
39
43
40
41
+ # Use the Ruby home of the `jt ruby` launcher
42
+ ruby_home=" $( jt ruby -e ' puts Truffle::Boot.ruby_home' ) "
43
+ cd " $ruby_home "
44
+
45
+
44
46
echo ' ** Check all launchers work'
45
47
check_launchers bin/ true
46
48
check_in_dir bin
54
56
55
57
echo ' ** Check gem executables are installed in all bin dirs'
56
58
57
- home=$( pwd)
58
-
59
59
cd " $( dirname $SELF_PATH ) /hello-world"
60
- " $home /bin/gem" build hello-world.gemspec
61
- " $home /bin/gem" install hello-world-0.0.1.gem
60
+ " $ruby_home /bin/gem" build hello-world.gemspec
61
+ " $ruby_home /bin/gem" install hello-world-0.0.1.gem
62
62
cd -
63
63
64
64
version=" $( bin/ruby -v) "
You can’t perform that action at this time.
0 commit comments