mirror of
https://github.com/ohmyzsh/ohmyzsh.git
synced 2024-11-19 21:41:07 +01:00
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
This commit is contained in:
parent
59fdb2b505
commit
abf73bb626
1 changed files with 4 additions and 4 deletions
|
@ -7,11 +7,11 @@ _is_rails_app () {
|
||||||
}
|
}
|
||||||
|
|
||||||
_tasks_changed () {
|
_tasks_changed () {
|
||||||
local -a paths
|
local -a files
|
||||||
paths=(lib/tasks lib/tasks/**/*(N))
|
files=(lib/tasks lib/tasks/**/*(N))
|
||||||
|
|
||||||
for path in $paths; do
|
for file in $files; do
|
||||||
if [[ "$path" -nt .rake_tasks ]]; then
|
if [[ "$file" -nt .rake_tasks ]]; then
|
||||||
return 0
|
return 0
|
||||||
fi
|
fi
|
||||||
done
|
done
|
||||||
|
|
Loading…
Reference in a new issue