mirror of
https://github.com/roswell/roswell.git
synced 2026-09-10 07:16:17 -04:00
Fix duplicate addition by "ros template add"
This commit is contained in:
parent
445d335392
commit
84e7192115
|
|
@ -203,7 +203,7 @@
|
|||
(info (template-read template-name)))
|
||||
(uiop:copy-file path-copy-from
|
||||
(ensure-directories-exist (template-file-path template-name file-name)))
|
||||
(unless (find file-name (getf info :files) :key (lambda (x) (getf x :name)))
|
||||
(unless (find file-name (getf info :files) :key (lambda (x) (getf x :name)) :test 'equal)
|
||||
(push (list :name file-name :method "copy") (getf info :files)))
|
||||
(template-write template-name info)))
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue