Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
O
oh-my-zsh
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
JIRA
JIRA
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
github
oh-my-zsh
Commits
40bfe5a4
Commit
40bfe5a4
authored
Sep 26, 2016
by
Fabian Wolff
Committed by
Marc Cornellà
Oct 03, 2016
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Implement a locking mechanism to avoid multiple update prompts (fixes #3766)
parent
6d975f72
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
23 additions
and
18 deletions
+23
-18
check_for_upgrade.sh
tools/check_for_upgrade.sh
+23
-18
No files found.
tools/check_for_upgrade.sh
View file @
40bfe5a4
...
...
@@ -29,8 +29,10 @@ fi
# Cancel upgrade if git is unavailable on the system
whence git
>
/dev/null
||
return
0
if
[
-f
~/.zsh-update
]
if
mkdir
"
$ZSH
/log/update.lock"
2>/dev/null
then
if
[
-f
~/.zsh-update
]
then
.
~/.zsh-update
if
[[
-z
"
$LAST_EPOCH
"
]]
;
then
...
...
@@ -53,7 +55,10 @@ then
fi
fi
fi
else
else
# create the zsh file
_update_zsh_update
fi
rm
-r
$ZSH
/log/update.lock
fi
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment