Skip to content

Commit

Permalink
Merge pull request #1485 from sogaiu/tweak-add-bin-dest-arg
Browse files Browse the repository at this point in the history
Prefix bin+sep to add-bin dest argument
  • Loading branch information
bakpakin authored Aug 15, 2024
2 parents 6bd58dd + 8ca1e44 commit 2dcc0ad
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/boot/boot.janet
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down

0 comments on commit 2dcc0ad

Please sign in to comment.