浏览代码

rake-fast: change variable name from `$path' to `$file'

This solves a problem of using the variable name `$path' which then
smashes the environment variable `$PATH' and messes up the session.

See https://github.com/robbyrussell/oh-my-zsh/pull/5343#issuecomment-243043098
Marc Cornellà 8 年之前
父节点
当前提交
abf73bb626
共有 1 个文件被更改,包括 4 次插入4 次删除
  1. 4 4
      plugins/rake-fast/rake-fast.plugin.zsh

+ 4 - 4
plugins/rake-fast/rake-fast.plugin.zsh

@@ -7,11 +7,11 @@ _is_rails_app () {
 }
 
 _tasks_changed () {
-  local -a paths
-  paths=(lib/tasks lib/tasks/**/*(N))
+  local -a files
+  files=(lib/tasks lib/tasks/**/*(N))
 
-  for path in $paths; do
-    if [[ "$path" -nt .rake_tasks ]]; then
+  for file in $files; do
+    if [[ "$file" -nt .rake_tasks ]]; then
       return 0
     fi
   done