Skip to content

Commit

Permalink
Merge pull request #15 from kickstarter/file-exists_to_file-exist
Browse files Browse the repository at this point in the history
`File.exists?` -> `File.exist?`
  • Loading branch information
a-lavis authored Sep 7, 2023
2 parents 432179a + e281f23 commit 906c692
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 4 deletions.
2 changes: 1 addition & 1 deletion lib/egads/command/extract.rb
Original file line number Diff line number Diff line change
Expand Up @@ -104,7 +104,7 @@ def patch_path
end

def should_download?(path)
options[:force] || File.zero?(path) || !File.exists?(path)
options[:force] || File.zero?(path) || !File.exist?(path)
end

def should_extract?
Expand Down
4 changes: 1 addition & 3 deletions lib/egads/command/stage.rb
Original file line number Diff line number Diff line change
Expand Up @@ -66,13 +66,11 @@ def stage_flag_path
end

def should_stage?
options[:force] || !File.exists?(stage_flag_path)
options[:force] || !File.exist?(stage_flag_path)
end

def shared_path
ENV['SHARED_PATH']
end
end
end


0 comments on commit 906c692

Please sign in to comment.