mirror of
https://github.com/ohmyzsh/ohmyzsh.git
synced 2025-08-17 18:21:21 +02:00
Use [ -nt ] instead of stat -f%m to check cache files.
This commit is contained in:
@ -1,10 +1,7 @@
|
||||
_phing_does_target_list_need_generating () {
|
||||
if [ ! -f .phing_targets ]; then return 0;
|
||||
else
|
||||
accurate=$(stat -f%m .phing_targets)
|
||||
changed=$(stat -f%m build.xml)
|
||||
return $(expr $accurate '>=' $changed)
|
||||
fi
|
||||
[ ! -f .phing_targets ] && return 0;
|
||||
[ .phing_targets -nt build.xml ] && return 0;
|
||||
return 1;
|
||||
}
|
||||
|
||||
_phing () {
|
||||
|
Reference in New Issue
Block a user