Skip to content

Commit

Permalink
Adding submodule branch override to Install-gui.ps1 (Chia-Network#13752)
Browse files Browse the repository at this point in the history
* Adding submodule branch override to Install-gui.ps1

* Linting fix on Install-gui.ps1
  • Loading branch information
wallentx authored Oct 31, 2022
1 parent 00aac17 commit fa33bea
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions Install-gui.ps1
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
$ErrorActionPreference = "Stop"
$SUBMODULE_BRANCH = $args[0]

if ($null -eq (Get-ChildItem env:VIRTUAL_ENV -ErrorAction SilentlyContinue))
{
Expand All @@ -16,6 +17,14 @@ if ($null -eq (Get-Command node -ErrorAction SilentlyContinue))
Write-Output "Running 'git submodule update --init --recursive'."
Write-Output ""
git submodule update --init --recursive
if ( $SUBMODULE_BRANCH ) {
git fetch --all
git reset --hard $SUBMODULE_BRANCH
Write-Output ""
Write-Output "Building the GUI with branch $SUBMODULE_BRANCH"
Write-Output ""
}


Push-Location
try {
Expand Down

0 comments on commit fa33bea

Please sign in to comment.