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
805427e0
Unverified
Commit
805427e0
authored
Jan 13, 2022
by
Marc Cornellà
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix(updater): give priority to `zstyle` settings if set (#10587)
Fixes #10587
parent
aaebe4c8
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
4 deletions
+6
-4
check_for_upgrade.sh
tools/check_for_upgrade.sh
+6
-4
No files found.
tools/check_for_upgrade.sh
View file @
805427e0
...
...
@@ -10,11 +10,13 @@ fi
# - auto: the update is performed automatically when it's time
# - reminder: a reminder is shown to the user when it's time to update
# - disabled: automatic update is turned off
zstyle
-s
':omz:update'
mode update_mode
||
update_mode
=
prompt
zstyle
-s
':omz:update'
mode update_mode
||
{
update_mode
=
prompt
# Support old-style settings
[[
"
$DISABLE_UPDATE_PROMPT
"
!=
true
]]
||
update_mode
=
auto
[[
"
$DISABLE_AUTO_UPDATE
"
!=
true
]]
||
update_mode
=
disabled
# If the mode zstyle setting is not set, support old-style settings
[[
"
$DISABLE_UPDATE_PROMPT
"
!=
true
]]
||
update_mode
=
auto
[[
"
$DISABLE_AUTO_UPDATE
"
!=
true
]]
||
update_mode
=
disabled
}
# Cancel update if:
# - the automatic update is disabled.
...
...
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