From 8ca1e44af13cb76a55bb88416c889422075e5ef9 Mon Sep 17 00:00:00 2001 From: sogaiu <983021772@users.noreply.github.com> Date: Thu, 15 Aug 2024 15:53:35 +0900 Subject: [PATCH] Prefix bin+sep to add-bin dest argument --- src/boot/boot.janet | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/boot/boot.janet b/src/boot/boot.janet index 4c083285..6af377fd 100644 --- a/src/boot/boot.janet +++ b/src/boot/boot.janet @@ -4387,10 +4387,10 @@ `Shorthand for adding scripts during an install. Scripts will be installed to (string (dyn *syspath*) "/bin") by default and will be set to be executable.` [manifest src &opt dest chmod-mode] - (default dest (string "bin" (sep) (->> src (string/split "/") last))) + (default dest (last (string/split "/" src))) (default chmod-mode 8r755) (os/mkdir (string (dyn *syspath*) (sep) "bin")) - (bundle/add-file manifest src dest chmod-mode)) + (bundle/add-file manifest src (string "bin" (sep) dest) chmod-mode)) (defn bundle/update-all "Reinstall all bundles"