Created
August 21, 2017 09:17
-
-
Save gegenschall/aefe336a1ed2a1ad533f365819c1b120 to your computer and use it in GitHub Desktop.
Disable the Powershell self-hosted build process
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
diff --git a/build.sh b/build.sh | |
index 33c4d745..3891c2ca 100755 | |
--- a/build.sh | |
+++ b/build.sh | |
@@ -1,10 +1,6 @@ | |
#!/usr/bin/env bash | |
set -e | |
-if hash powershell 2>/dev/null; then | |
- echo 'Continuing with `powershell -noprofile -c Start-PSBuild`' | |
- powershell -noprofile -c "Import-Module ./build.psm1; Start-PSBuild" | |
-else | |
echo 'Continuing with full manual build' | |
## Restore | |
@@ -56,4 +52,3 @@ EOF | |
dotnet publish --configuration Linux src/powershell-unix/ --output bin --runtime $rid | |
echo 'You can run powershell from bin/, but some modules that are normally added by the Restore-PSModule step will not be available.' | |
-fi |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment