aboutsummaryrefslogtreecommitdiffstats
path: root/tool
diff options
context:
space:
mode:
authornobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2017-04-14 00:45:48 +0000
committernobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2017-04-14 00:45:48 +0000
commit29335ed2ab6f3d00d90ef8121b9c2cc1bf14309b (patch)
tree7fbfc0eaab83af7ca28e2d0c12cb22f8bc498163 /tool
parent1d5ab49861210e5956c137ce3a05bdf5b65229df (diff)
downloadruby-29335ed2ab6f3d00d90ef8121b9c2cc1bf14309b.tar.gz
git-refresh: fix abort by cd failure
* tool/git-refresh: try `cd -P` in a subshell, because Solaris10 sh dies if it fails, not only the command. [ruby-dev:50074] [Bug #13433] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@58344 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'tool')
-rwxr-xr-xtool/git-refresh2
1 files changed, 1 insertions, 1 deletions
diff --git a/tool/git-refresh b/tool/git-refresh
index 2f41ba1b9d..48096fde36 100755
--- a/tool/git-refresh
+++ b/tool/git-refresh
@@ -1,7 +1,7 @@
#!/bin/sh
set -e
-if cd -P . 2>/dev/null; then
+if (cd -P .) 2>/dev/null; then
CHDIR='cd -P'
else
CHDIR='cd'