mirror of
https://github.com/ohmyzsh/ohmyzsh.git
synced 2024-11-26 21:51:05 +01:00
Switch newer-than logic to get the desired behavior
In the old version, the function returned true (0) if the cache file was newer than the Cakefile, which was *always* unless the Cakefile had been updated. Therefore we generated the file every time unless the Cakefile was updated, which was precisely when we needed to regenerate the cache file. Now it generates the cache file only when the Cakefile has been updated.
This commit is contained in:
parent
550ccca91c
commit
e60458793a
1 changed files with 1 additions and 1 deletions
|
@ -15,7 +15,7 @@ _cake_does_target_list_need_generating () {
|
||||||
fi
|
fi
|
||||||
|
|
||||||
[ ! -f ${_cake_task_cache_file} ] && return 0;
|
[ ! -f ${_cake_task_cache_file} ] && return 0;
|
||||||
[ ${_cake_task_cache_file} -nt Cakefile ] && return 0;
|
[ Cakefile -nt ${_cake_task_cache_file} ] && return 0;
|
||||||
return 1;
|
return 1;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue