Created
July 16, 2014 10:17
-
-
Save jamescrowley/963b0ad8db2f162a87f7 to your computer and use it in GitHub Desktop.
PowerShell / F# Make weirdness
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Target "PowerShell" (fun _ -> | |
let result = ExecProcess (fun info -> | |
info.FileName <- "powershell.exe" | |
info.WorkingDirectory <- (currentDirectory @@ "deploy") | |
info.Arguments <- "-ExecutionPolicy RemoteSigned -Command \"Import-Module Carbon\"") System.TimeSpan.MaxValue | |
if result <> 0 then failwithf "Error deploying local" | |
) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
powershell -ExecutionPolicy RemoteSigned -Command "Import-Module Carbon" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
The exception is below. Carbon is installed to C:\Windows\System32\WindowsPowerShell\v1.0\Modules\Carbon