summaryrefslogtreecommitdiff
path: root/plugins
diff options
context:
space:
mode:
authorMarc Cornellà <marc.cornella@live.com>2016-08-29 08:37:09 +0200
committerMarc Cornellà <marc.cornella@live.com>2016-08-29 09:43:08 +0200
commitabf73bb626cbe645e23f205583631330c9fbabd4 (patch)
treeef473a0d466647ab75daf1fe6f1599fcc91bb524 /plugins
parent59fdb2b505bc415738dc92f6188453e54bf0c45c (diff)
downloadzsh-abf73bb626cbe645e23f205583631330c9fbabd4.tar.gz
zsh-abf73bb626cbe645e23f205583631330c9fbabd4.tar.bz2
zsh-abf73bb626cbe645e23f205583631330c9fbabd4.zip
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
Diffstat (limited to 'plugins')
-rw-r--r--plugins/rake-fast/rake-fast.plugin.zsh8
1 files changed, 4 insertions, 4 deletions
diff --git a/plugins/rake-fast/rake-fast.plugin.zsh b/plugins/rake-fast/rake-fast.plugin.zsh
index a594ca923..ca80d86e1 100644
--- a/plugins/rake-fast/rake-fast.plugin.zsh
+++ b/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