Zsh: Fix always true comparison

This commit is contained in:
tastytea 2022-03-28 15:25:52 +02:00
parent 2cc6086cbb
commit 4202e0ac9c
Signed by: tastytea
SSH Key Fingerprint: SHA256:FBkvrOlhq5use1XEttyUGT4bUTDVA1ar9SgIc9P03cM

View File

@ -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}"