Skip to content

Commit

Permalink
Fixes rvm update problem on zsh.
Browse files Browse the repository at this point in the history
$path is a special variable on zsh. Don't use it.
  • Loading branch information
nerdrew authored and wayneeseguin committed Oct 26, 2010
1 parent acf4675 commit fa0e01b
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions scripts/utility
Expand Up @@ -243,7 +243,7 @@ __rvm_remove_rvm_from_path()
# Run a specified command and log it.
__rvm_run()
{
local name log path command message
local name log temp_log_path command message

name="${1:-""}"
command="${2:-""}"
Expand All @@ -258,12 +258,12 @@ __rvm_run()
fi

if [[ -n "${rvm_ruby_string:-""}" ]] ; then
path="${rvm_log_path:-"$rvm_path/log"}/$rvm_ruby_string"
temp_log_path="${rvm_log_path:-"$rvm_path/log"}/$rvm_ruby_string"
else
path="${rvm_log_path:-"$rvm_path/log"}"
temp_log_path="${rvm_log_path:-"$rvm_path/log"}"
fi

log="$path/$name.log"
log="$temp_log_path/$name.log"

if [[ ! -d "${log%\/*}" ]] ; then
\mkdir -p "${log%\/*}"
Expand Down

0 comments on commit fa0e01b

Please sign in to comment.