Skip to content

Commit

Permalink
when file don't exists read from URL
Browse files Browse the repository at this point in the history
  • Loading branch information
jcubic committed Jan 19, 2024
1 parent 886b3e2 commit a68d5b3
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 11 deletions.
2 changes: 1 addition & 1 deletion dist/std.min.scm

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

8 changes: 3 additions & 5 deletions dist/std.scm

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Binary file modified dist/std.xcb
Binary file not shown.
8 changes: 3 additions & 5 deletions lib/bootstrap.scm
Original file line number Diff line number Diff line change
Expand Up @@ -1403,11 +1403,9 @@
(http-get url binary)))))
(if (not read-file)
(fetch-url path binary)
(if (not (file-exists? path))
(throw (new Error (string-append "file "
path
" don't exists")))
(read-file path binary))))))
(if (file-exists? path)
(read-file path binary)
(fetch-url path binary))))))

;; -----------------------------------------------------------------------------
(define %read-binary-file (curry %read-file true))
Expand Down

0 comments on commit a68d5b3

Please sign in to comment.