Skip to content

Commit 5dae25e

Browse files
committed
Return created file by curl to adhere to QL API
1 parent ac4724f commit 5dae25e

1 file changed

Lines changed: 4 additions & 3 deletions

File tree

ql-https.lisp

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -16,9 +16,10 @@
1616
"Fetch URL and safe it to FILE."
1717
(declare (ignorable args))
1818
(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)
19+
(values (uiop:run-program (format nil "curl -fsSL ~A -o ~A" url file)
20+
:output '(:string :stripped t)
21+
:error-output :output)
22+
(and file (probe-file file)))
2223
(restart-case
2324
(handler-bind ((error (lambda (c)
2425
(declare (ignore c))

0 commit comments

Comments
 (0)