Skip to content

Commit

Permalink
Merge pull request #699 from theimowski/master
Browse files Browse the repository at this point in the history
workaround - closes #698
  • Loading branch information
forki committed Mar 12, 2015
2 parents aacca8d + 07a0b07 commit 3b304ef
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/Paket.Core/TemplateFile.fs
Original file line number Diff line number Diff line change
Expand Up @@ -325,6 +325,10 @@ module internal TemplateFile =
| CompleteInfo(core, optionalInfo) ->
let files =
[ for source, target in optionalInfo.Files do
// workaround for #698
let source = if DirectoryInfo(Path.Combine(root, source)).Exists && not (source.EndsWith("/"))
then source + "/"
else source
for file in Fake.Globbing.search root source do
yield file, target ]
CompleteInfo(core, { optionalInfo with Files = files })
Expand Down

0 comments on commit 3b304ef

Please sign in to comment.