Fixed bug in script execution chwd code.
authorTim Vaughan <timv@ughan.xyz>
Wed, 13 May 2020 16:47:55 +0000 (18:47 +0200)
committerTim Vaughan <timv@ughan.xyz>
Wed, 13 May 2020 16:47:55 +0000 (18:47 +0200)
scratchy.scm

index b48ffc4..ecb0b65 100644 (file)
     (if (legal-script-filename? filename config)
         (let* ((sexp (with-input-from-file filename read))
                (script-result (with-selector-dir
-                               selector config
+                               (pathname-directory selector) config
                                (lambda ()
                                  (apply (eval sexp) arguments)))))
           (when (pair? script-result)