Skip to content

Commit 7ae30a9

Browse files
authored
Merge pull request #1974 from Sherry520/issue_ruby
Modify ruby scripts: File.exists? to File.exist?
2 parents 1ca265b + 09a5d12 commit 7ae30a9

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)