diff options
| author | Jan Tuomi <jans.tuomi@gmail.com> | 2024-03-25 23:05:10 +0200 |
|---|---|---|
| committer | Jan Tuomi <jans.tuomi@gmail.com> | 2024-03-26 21:25:10 +0200 |
| commit | d69143a4be9c79dec92984b844ce9213c79e69ab (patch) | |
| tree | 58bb123e35e4d5a5943f474dcc8abd45bad22297 /main.scm | |
| parent | b15d0a9fe278a3db87b65e44459a5345151dfa86 (diff) | |
Add asserts for nonempty dir paths to make filesystem ops safer
Diffstat (limited to 'main.scm')
| -rw-r--r-- | main.scm | 4 |
1 files changed, 4 insertions, 0 deletions
@@ -39,6 +39,10 @@ (define template-path (or (get-environment-variable "PANDOC_TEMPLATE") "template.html")) +(assert (> (string-length src-dir) 0)) +(assert (> (string-length out-dir) 0)) +(assert (> (string-length template-path) 0)) + (define (process-path path) (match path [(? is-md?) (process-md path)] |
