diff options
author | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2015-01-31 08:42:13 +0000 |
---|---|---|
committer | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2015-01-31 08:42:13 +0000 |
commit | e783dcd8cef51631964dccc20963d5cfd9628278 (patch) | |
tree | c46dd12429d3f6f50733d98e8181d28730debf6c /tool | |
parent | 3d7b3f0e8b3af70cd8391789814d2a97d07eb801 (diff) | |
download | ruby-e783dcd8cef51631964dccc20963d5cfd9628278.tar.gz |
rbinstall.rb: no chdir
* tool/rbinstall.rb (PROLOG_SCRIPT): use the given symlinked
directory name.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@49455 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'tool')
-rwxr-xr-x | tool/rbinstall.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tool/rbinstall.rb b/tool/rbinstall.rb index 5c420bf023..3c4a4803c4 100755 --- a/tool/rbinstall.rb +++ b/tool/rbinstall.rb @@ -418,7 +418,7 @@ end if load_relative PROLOG_SCRIPT = <<EOS #!/bin/sh\n# -*- ruby -*- -bindir=`#{CONFIG["CHDIR"]} "${0%/*}" 2>/dev/null; pwd` +bindir="${0%/*}" EOS if CONFIG["LIBRUBY_RELATIVE"] != 'yes' and libpathenv = CONFIG["LIBPATHENV"] pathsep = File::PATH_SEPARATOR |