浏览代码

Revert "Fixed issue #19 'Rake not auto completing'. The stat command syntax that was being used was not correct. Or at least on my machine. See man page for the stat command"

This reverts commit 83907294d640d910968cf9152d11c6a5ab3205f5.
Robby Russell 15 年之前
父节点
当前提交
286559d180
共有 1 个文件被更改,包括 2 次插入2 次删除
  1. 2 2
      lib/rake_completion.zsh

+ 2 - 2
lib/rake_completion.zsh

@@ -1,8 +1,8 @@
 _rake_does_task_list_need_generating () {
 _rake_does_task_list_need_generating () {
   if [ ! -f .rake_tasks~ ]; then return 0;
   if [ ! -f .rake_tasks~ ]; then return 0;
   else
   else
-    accurate=$(stat -c "%n" .rake_tasks~)
-    changed=$(stat -c "%n" Rakefile)
+    accurate=$(stat -f%m .rake_tasks~)
+    changed=$(stat -f%m Rakefile)
     return $(expr $accurate '>=' $changed)
     return $(expr $accurate '>=' $changed)
   fi
   fi
 }
 }