Fix auto-update for WSL
`find` on WSL doesn't support time units, so instead of find ... -mtime -300s one has to use find ... -mtime -300
This commit is contained in:
parent
87fec6ca69
commit
f69461abd3
@ -294,7 +294,7 @@ auto-update() {
|
|||||||
for repo_fetch_head in "${repo_fetch_heads[@]}"
|
for repo_fetch_head in "${repo_fetch_heads[@]}"
|
||||||
do
|
do
|
||||||
if [[ ! -f "${repo_fetch_head}" ]] ||
|
if [[ ! -f "${repo_fetch_head}" ]] ||
|
||||||
[[ -z "$(find "${repo_fetch_head}" -type f -mtime -"${HOMEBREW_AUTO_UPDATE_SECS}"s 2>/dev/null)" ]]
|
[[ -z "$(find "${repo_fetch_head}" -type f -newermt "-${HOMEBREW_AUTO_UPDATE_SECS} seconds" 2>/dev/null)" ]]
|
||||||
then
|
then
|
||||||
needs_auto_update=1
|
needs_auto_update=1
|
||||||
break
|
break
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user