mirror of
https://github.com/Chia-Network/chia-blockchain.git
synced 2025-01-06 04:07:16 +03:00
Adding submodule branch override to Install-gui.ps1 (#13752)
* Adding submodule branch override to Install-gui.ps1 * Linting fix on Install-gui.ps1
This commit is contained in:
parent
00aac17996
commit
fa33bea9e7
@ -1,4 +1,5 @@
|
||||
$ErrorActionPreference = "Stop"
|
||||
$SUBMODULE_BRANCH = $args[0]
|
||||
|
||||
if ($null -eq (Get-ChildItem env:VIRTUAL_ENV -ErrorAction SilentlyContinue))
|
||||
{
|
||||
@ -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 {
|
||||
|
Loading…
Reference in New Issue
Block a user