mirror of
https://github.com/Chia-Network/chia-blockchain.git
synced 2025-01-07 17:59:35 +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"
|
$ErrorActionPreference = "Stop"
|
||||||
|
$SUBMODULE_BRANCH = $args[0]
|
||||||
|
|
||||||
if ($null -eq (Get-ChildItem env:VIRTUAL_ENV -ErrorAction SilentlyContinue))
|
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 "Running 'git submodule update --init --recursive'."
|
||||||
Write-Output ""
|
Write-Output ""
|
||||||
git submodule update --init --recursive
|
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
|
Push-Location
|
||||||
try {
|
try {
|
||||||
|
Loading…
Reference in New Issue
Block a user