summaryrefslogtreecommitdiff
path: root/plugins/phing
diff options
context:
space:
mode:
authorSpencer Rinehart <anubis@overthemonkey.com>2013-03-12 13:11:18 -0400
committerSpencer Rinehart <anubis@overthemonkey.com>2013-03-12 13:23:30 -0400
commit300f94cb0e1121e7796edbedcbc6d686e755be5b (patch)
treea79be9894b339fc270042c5023fa536c0580be1e /plugins/phing
parent0ab0e67ecfc52b4779b700149a9c51feeb05318e (diff)
downloadzsh-300f94cb0e1121e7796edbedcbc6d686e755be5b.tar.gz
zsh-300f94cb0e1121e7796edbedcbc6d686e755be5b.tar.bz2
zsh-300f94cb0e1121e7796edbedcbc6d686e755be5b.zip
Use [ -nt ] instead of stat -f%m to check cache files.
Diffstat (limited to 'plugins/phing')
-rw-r--r--plugins/phing/phing.plugin.zsh9
1 files changed, 3 insertions, 6 deletions
diff --git a/plugins/phing/phing.plugin.zsh b/plugins/phing/phing.plugin.zsh
index 8f4adca08..1abf0a954 100644
--- a/plugins/phing/phing.plugin.zsh
+++ b/plugins/phing/phing.plugin.zsh
@@ -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 () {