mirror of
https://github.com/black7375/Firefox-UI-Fix.git
synced 2025-12-06 02:30:54 -08:00
Fix: Install - Update with git stash & git stash pop at dirty
This commit is contained in:
parent
d982c0f6e2
commit
8d9c068e47
1 changed files with 12 additions and 0 deletions
12
install.sh
12
install.sh
|
|
@ -716,8 +716,20 @@ update_profile() {
|
|||
|
||||
local LEPTONGITPATH="${Path}/chrome/.git"
|
||||
if [ "${Type}" == "Git" ]; then
|
||||
local gitDirty=""
|
||||
|
||||
if [[ $(git diff --stat) != '' ]]; then
|
||||
gitDirty="true"
|
||||
git --git-dir "${LEPTONGITPATH}" stash
|
||||
fi
|
||||
|
||||
git --git-dir "${LEPTONGITPATH}" checkout "${Branch}"
|
||||
git --git-dir "${LEPTONGITPATH}" pull --no-edit
|
||||
|
||||
if [ "${customFileExist}" == "true" ]; then
|
||||
git --git-dir "${LEPTONGITPATH}" stash pop
|
||||
fi
|
||||
|
||||
elif [ "${Type}" == "Local" ] || [ "${Type}" == "Release" ]; then
|
||||
check_chrome_exist
|
||||
clone_lepton
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue