1
0
Fork 0
mirror of https://github.com/ohmyzsh/ohmyzsh.git synced 2024-11-11 00:10:08 +00:00

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 83907294d6.
This commit is contained in:
Robby Russell 2009-11-08 15:24:20 -08:00
parent 97c6664948
commit 286559d180

View file

@ -1,8 +1,8 @@
_rake_does_task_list_need_generating () {
if [ ! -f .rake_tasks~ ]; then return 0;
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)
fi
}