Skip to content

Commit

Permalink
One of the file writes was missing a Directory.Create()
Browse files Browse the repository at this point in the history
Also if this is always called in writeScript functions it needn't be duplicated elsewhere
  • Loading branch information
jamesjrg committed Dec 14, 2016
1 parent 10379d9 commit 3a280c5
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/Paket.Core/ScriptGeneration.fs
Original file line number Diff line number Diff line change
Expand Up @@ -183,6 +183,8 @@ module ScriptGeneration =
pieces
|> String.concat ("\n")


scriptFile.Directory.Create()
File.WriteAllText(scriptFile.FullName, text)

let writeCSharpScript scriptFile input =
Expand Down Expand Up @@ -316,7 +318,6 @@ module ScriptGeneration =
match scriptGenerator scriptInfo with
| DoNotGenerate -> knownIncludeScripts
| Generate pieces ->
scriptFile.Directory.Create()
writeScript scriptFile pieces
knownIncludeScripts |> Map.add package.Name scriptFile

Expand Down

0 comments on commit 3a280c5

Please sign in to comment.