Sha256: bc0c85f7f67f151797639faf674791c1d635c7a028eabc475ebaf3b7ef3e35fb

Contents?: true

Size: 337 Bytes

Versions: 106

Compression:

Stored size: 337 Bytes

Contents

#!/usr/bin/env ruby

# todo copied from os.rb
NOT_MODIFIED = 3
NOT_FOUND = 4
SUCCESS = 0

timestamp = ARGV[0].to_i
path = ARGV[1]

exit NOT_FOUND unless File.exist?(path)
exit NOT_MODIFIED if File.mtime(path).to_i <= timestamp

File.open(path) do |file|
  while bytes = file.read(4096) do
    $stdout.write(bytes)
  end
end

exit SUCCESS

Version data entries

106 entries across 106 versions & 2 rubygems

Version Path
fig-0.2.1 bin/fig-download
fig-0.1.81 bin/fig-download
fig-0.1.79 bin/fig-download
fig-0.1.77 bin/fig-download
fig-0.1.76 bin/fig-download
fig-0.1.75 bin/fig-download
fig-0.1.73 bin/fig-download
fig-0.1.71 bin/fig-download
fig-0.1.69 bin/fig-download
fig-0.1.67 bin/fig-download
fig-0.1.65 bin/fig-download
fig-0.1.64 bin/fig-download
fig-0.1.62 bin/fig-download
fig-0.1.61 bin/fig-download
fig-0.1.59 bin/fig-download
fig-0.1.57 bin/fig-download
fig-0.1.55 bin/fig-download
fig-0.1.54 bin/fig-download
fig-0.1.53 bin/fig-download
fig-0.1.52 bin/fig-download