Skip to content

Commit

Permalink
遵循原文 修改ruby脚本过时的代码
Browse files Browse the repository at this point in the history
  • Loading branch information
Sherry520 authored and networm committed Aug 13, 2024
1 parent 0ce83ce commit 55231ea
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion book/07-git-tools/git-credential-read-only
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ OptionParser.new do |opts|
end.parse!

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

known = {} # <3>
while line = STDIN.gets
Expand Down

0 comments on commit 55231ea

Please sign in to comment.