From fd7dde3efe1b51d9b3c13ff64c4b9ec21a83a62e Mon Sep 17 00:00:00 2001 From: alstjr7375 Date: Tue, 26 Apr 2022 04:05:32 +0900 Subject: [PATCH] Fix: Install - Powershell's stash --- install.ps1 | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/install.ps1 b/install.ps1 index 46f1123..8102ee9 100644 --- a/install.ps1 +++ b/install.ps1 @@ -889,7 +889,7 @@ function Stash-File() { ) if ( "$(git --git-dir "${gitDir}" --work-tree "${leptonDir}" diff --stat)" -ne '' ) { - git --git-dir "${gitDir}" --work-tree "${leptonDir}" checkout stash + git --git-dir "${gitDir}" --work-tree "${leptonDir}" stash return $true } return $false @@ -905,7 +905,7 @@ function Restore-File() { ) if ( "${gitDirty}" -eq $true ) { - git --git-dir "${gitDir}" --work-tree "${leptonDir}" checkout stash pop --quiet + git --git-dir "${gitDir}" --work-tree "${leptonDir}" stash pop --quiet } }