Skip to content

Commit fc8a78b

Browse files
committed
遵循原文 修改ruby脚本过时的代码
1 parent 66c8cea commit fc8a78b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

book/07-git-tools/git-credential-read-only

+1-1
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ OptionParser.new do |opts|
1111
end.parse!
1212

1313
exit(0) unless ARGV[0].downcase == 'get' # <2>
14-
exit(0) unless File.exists? path
14+
exit(0) unless File.exist? path
1515

1616
known = {} # <3>
1717
while line = STDIN.gets

0 commit comments

Comments
 (0)