Zsh: Fix always true comparison
This commit is contained in:
parent
2cc6086cbb
commit
4202e0ac9c
|
@ -54,7 +54,7 @@ if command -v antibody > /dev/null; then
|
||||||
local _plugins_modified=$(stat --format="%Y" "${ZSH_PLUGIN_SOURCE}")
|
local _plugins_modified=$(stat --format="%Y" "${ZSH_PLUGIN_SOURCE}")
|
||||||
local _now=$(date '+%s')
|
local _now=$(date '+%s')
|
||||||
# Update plugins every 10 days
|
# Update plugins every 10 days
|
||||||
if [[ $(( (${_now} - ${_plugins_modified} - 60 * 60 * 24 * 10) > 0 )) ]]; then
|
if [[ $(( ${_now} - ${_plugins_modified} - 60 * 60 * 24 * 10)) -gt 0 ]]; then
|
||||||
print "\e[3;95mUpdating plugins…\e[0m"
|
print "\e[3;95mUpdating plugins…\e[0m"
|
||||||
antibody update --parallelism=$(nproc --ignore=1) \
|
antibody update --parallelism=$(nproc --ignore=1) \
|
||||||
&& touch "${ZSH_PLUGIN_SOURCE}"
|
&& touch "${ZSH_PLUGIN_SOURCE}"
|
||||||
|
|
Loading…
Reference in New Issue
Block a user