1
0
mirror of https://github.com/janet-lang/janet synced 2024-10-01 16:30:40 +00:00

Shouldn't make a difference...

This commit is contained in:
Calvin Rose 2024-05-26 11:07:23 -05:00
parent 1225cd31c8
commit 87db463f4e

View File

@ -4010,7 +4010,7 @@
(defn- bundle-dir
[&opt bundle-name]
(def s (sep))
(string (bundle-rpath (dyn *syspath*)) s "bundle" s bundle-name))
(string (bundle-rpath (dyn *syspath*)) s "bundle" (if bundle-name s) bundle-name))
(defn- bundle-file
[bundle-name filename]
@ -4024,7 +4024,7 @@
(defn- prime-bundle-paths
[]
(def s (sep))
(def path (string (dyn *syspath*) s "bundle"))
(def path (bundle-dir))
(os/mkdir path)
(assert (os/stat path :mode)))
@ -4042,12 +4042,7 @@
(def s (sep))
(each y (os/dir x)
(rmrf (string x s y)))
(try
(os/rmdir x)
([e f]
(eprint "printing files in " x "...")
(each y (os/dir x) (eprint " - " y))
(propagate e f))))
(os/rmdir x))
(os/rm x))
nil)