diff options
author | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2017-04-14 00:45:48 +0000 |
---|---|---|
committer | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2017-04-14 00:45:48 +0000 |
commit | 03421631bd0c3f92e2a57c3943ddaa2b3e06e9b9 (patch) | |
tree | 7fbfc0eaab83af7ca28e2d0c12cb22f8bc498163 /tool/git-refresh | |
parent | 197ebcb083d1a58448e3971cdfa6867794f22bd6 (diff) |
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/git-refresh')
-rwxr-xr-x | tool/git-refresh | 2 |
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' |