summaryrefslogtreecommitdiff
path: root/tool
diff options
context:
space:
mode:
authornobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2015-01-31 08:42:13 +0000
committernobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2015-01-31 08:42:13 +0000
commite783dcd8cef51631964dccc20963d5cfd9628278 (patch)
treec46dd12429d3f6f50733d98e8181d28730debf6c /tool
parent3d7b3f0e8b3af70cd8391789814d2a97d07eb801 (diff)
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-xtool/rbinstall.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/tool/rbinstall.rb b/tool/rbinstall.rb
index 5c420bf..3c4a480 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