Skip to content

Commit

Permalink
Merge pull request ohmyzsh#554 from toolbear/549-fix-auto-upgrade
Browse files Browse the repository at this point in the history
Fix auto upgrade failure from non-exported ZSH env var
  • Loading branch information
robbyrussell committed Oct 10, 2011
2 parents 167f84d + c113e88 commit 0fe2462
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion oh-my-zsh.sh
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# Check for updates on initial load...
if [ "$DISABLE_AUTO_UPDATE" != "true" ]
then
/usr/bin/env zsh $ZSH/tools/check_for_upgrade.sh
/usr/bin/env ZSH=$ZSH zsh $ZSH/tools/check_for_upgrade.sh
fi

# Initializes Oh My Zsh
Expand Down
2 changes: 1 addition & 1 deletion tools/check_for_upgrade.sh
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ then
read line
if [ "$line" = Y ] || [ "$line" = y ]
then
/bin/sh $ZSH/tools/upgrade.sh
/usr/bin/env ZSH=$ZSH /bin/sh $ZSH/tools/upgrade.sh
# update the zsh file
_update_zsh_update
fi
Expand Down

0 comments on commit 0fe2462

Please sign in to comment.