Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Merge pull request #2658 from leifcr/rake-fast-issue

Plugin: Rake-fast: Support both *nix and Darwin
  • Loading branch information...
commit 861d380aa38d2a6d9e70d9e8da1088fe1abe53b5 2 parents 27c28a9 + 48f8f28
@robbyrussell authored
Showing with 7 additions and 2 deletions.
  1. +7 −2 plugins/rake-fast/rake-fast.plugin.zsh
View
9 plugins/rake-fast/rake-fast.plugin.zsh
@@ -10,8 +10,13 @@ _rake_refresh () {
_rake_does_task_list_need_generating () {
if [ ! -f .rake_tasks ]; then return 0;
else
- accurate=$(stat -f%m .rake_tasks)
- changed=$(stat -f%m Rakefile)
+ if [[ $(uname -s) == 'Darwin' ]]; then
+ accurate=$(stat -f%m .rake_tasks)
+ changed=$(stat -f%m Rakefile)
+ else
+ accurate=$(stat -c%Y .rake_tasks)
+ changed=$(stat -c%Y Rakefile)
+ fi
return $(expr $accurate '>=' $changed)
fi
}
Please sign in to comment.
Something went wrong with that request. Please try again.