mirror of
https://github.com/black7375/Firefox-UI-Fix.git
synced 2025-12-06 02:30:54 -08:00
Add: Install - git stash at update port to pwsh
This commit is contained in:
parent
2c884f5ab5
commit
ba16f7e1e0
1 changed files with 12 additions and 1 deletions
13
install.ps1
13
install.ps1
|
|
@ -735,9 +735,20 @@ function Update-Profile() {
|
|||
$local:Path = $LEPTONINFO["${section}"]["Path"]
|
||||
|
||||
$local:LEPTONGITPATH="${Path}\chrome\.git"
|
||||
if ( "${Type}" -eq "Git" ){
|
||||
if ( "${Type}" -eq "Git" ) {
|
||||
$local:gitDirty = $false
|
||||
|
||||
if ( "$(git diff --stat)" -ne '' ) {
|
||||
$local:gitDirty = $true
|
||||
git --git-dir "${LEPTONGITPATH}" checkout stash
|
||||
}
|
||||
|
||||
git --git-dir "${LEPTONGITPATH}" checkout "${Branch}"
|
||||
git --git-dir "${LEPTONGITPATH}" pull --no-edit
|
||||
|
||||
if ( "${gitDirty}" -eq $true ) {
|
||||
git --git-dir "${LEPTONGITPATH}" checkout stash pop
|
||||
}
|
||||
}
|
||||
elseif ( "${Type}" -eq "Local" -or "${Type}" -eq "Release" ) {
|
||||
Check-ChromeExist
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue