mirror of
https://github.com/ohmyzsh/ohmyzsh.git
synced 2026-02-13 03:01:32 +01:00
fixing logic which checks if gradle tasks should be reloaded
The -nt logic was backwards, causing "gradle tasks" to be executed every time; if build.gradle is newer than .gradletasknamecache then return 0 (i.e. true).
This commit is contained in:
parent
c79e5a97a9
commit
393b09361e
1 changed files with 3 additions and 2 deletions
|
|
@ -54,13 +54,14 @@ function in_gradle() {
|
|||
fi
|
||||
}
|
||||
|
||||
############################################################################## Examine the build.gradle file to see if its
|
||||
##############################################################################
|
||||
# Examine the build.gradle file to see if its
|
||||
# timestamp has changed, and if so, regen
|
||||
# the .gradle_tasks cache file
|
||||
############################################################################
|
||||
_gradle_does_task_list_need_generating () {
|
||||
[ ! -f .gradletasknamecache ] && return 0;
|
||||
[ .gradletasknamecache -nt build.gradle ] && return 0;
|
||||
[ build.gradle -nt .gradletasknamecache ] && return 0;
|
||||
return 1;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue