Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save gegenschall/aefe336a1ed2a1ad533f365819c1b120 to your computer and use it in GitHub Desktop.
Save gegenschall/aefe336a1ed2a1ad533f365819c1b120 to your computer and use it in GitHub Desktop.
Disable the Powershell self-hosted build process
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