Use function for install-paths

This commit is contained in:
Michael Camilleri
2020-06-18 19:07:43 +09:00
parent 4077822e37
commit 536648ec19
2 changed files with 5 additions and 5 deletions
+1 -1
View File
@@ -20,7 +20,7 @@
(def- replace-peg
(peg/compile
~(% (* '(to "###START###")
(constant ,(string/format "# Inserted by tools/patch-jpm.janet\n(def install-paths %j)" install-paths))
(constant ,(string/format "# Inserted by tools/patch-jpm.janet\n(defn- install-paths [] %j)" install-paths))
(thru "###END###")
'(any 1)))))