Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Fix auto upgrade failure from non-exported ZSH env var

Fixes #549. Specify ZSH=$ZSH explicitly when invoking
the auto update scripts.
  • Loading branch information...
commit 1021ea4f12e2cb78530067434a93c93567a85163 1 parent 82fe4c6
Tim Taylor toolbear authored committed
Showing with 2 additions and 2 deletions.
  1. +1 −1  oh-my-zsh.sh
  2. +1 −1  tools/check_for_upgrade.sh
2  oh-my-zsh.sh
View
@@ -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
2  tools/check_for_upgrade.sh
View
@@ -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
Please sign in to comment.
Something went wrong with that request. Please try again.