Commit abf73bb6 authored by Marc Cornellà's avatar Marc Cornellà
Browse files

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
parent 59fdb2b5
......@@ -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
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment