mirror of
https://github.com/janet-lang/janet
synced 2024-12-23 23:10:26 +00:00
Add /i switch to xcopy in jpm
This commit is contained in:
parent
86d21816b6
commit
d71cf093bb
@ -223,8 +223,9 @@
|
|||||||
[src dest]
|
[src dest]
|
||||||
(print "copying " src " to " dest "...")
|
(print "copying " src " to " dest "...")
|
||||||
(if is-win
|
(if is-win
|
||||||
(let [end (last (peg/match path-splitter src))]
|
(let [end (last (peg/match path-splitter src))
|
||||||
(shell "xcopy" src (string dest "\\" end) "/y" "/s" "/e"))
|
isdir (= (os/stat src :mode) :directory)]
|
||||||
|
(shell "xcopy" src (if isdir (string dest "\\" end) dest) "/y" "/s" "/e" "/i"))
|
||||||
(shell "cp" "-rf" src dest)))
|
(shell "cp" "-rf" src dest)))
|
||||||
|
|
||||||
#
|
#
|
||||||
|
Loading…
Reference in New Issue
Block a user