1 parent ac4724f commit 5dae25eCopy full SHA for 5dae25e
1 file changed
ql-https.lisp
@@ -16,9 +16,10 @@
16
"Fetch URL and safe it to FILE."
17
(declare (ignorable args))
18
(if (uiop:string-prefix-p "https://" url)
19
- (uiop:run-program (format nil "curl -fsSL ~A -o ~A" url file)
20
- :output '(:string :stripped t)
21
- :error-output :output)
+ (values (uiop:run-program (format nil "curl -fsSL ~A -o ~A" url file)
+ :output '(:string :stripped t)
+ :error-output :output)
22
+ (and file (probe-file file)))
23
(restart-case
24
(handler-bind ((error (lambda (c)
25
(declare (ignore c))
0 commit comments