Commit c113e88c authored by Tim Taylor's avatar Tim Taylor
Browse files

Fix auto upgrade failure from non-exported ZSH env var

Fixes #549. Specify ZSH=$ZSH explicitly when invoking
the auto update scripts.
parent 9f46eafa
# Check for updates on initial load... # Check for updates on initial load...
if [ "$DISABLE_AUTO_UPDATE" != "true" ] if [ "$DISABLE_AUTO_UPDATE" != "true" ]
then then
/usr/bin/env zsh $ZSH/tools/check_for_upgrade.sh /usr/bin/env ZSH=$ZSH zsh $ZSH/tools/check_for_upgrade.sh
fi fi
# Initializes Oh My Zsh # Initializes Oh My Zsh
......
...@@ -24,7 +24,7 @@ then ...@@ -24,7 +24,7 @@ then
read line read line
if [ "$line" = Y ] || [ "$line" = y ] if [ "$line" = Y ] || [ "$line" = y ]
then then
/bin/sh $ZSH/tools/upgrade.sh /usr/bin/env ZSH=$ZSH /bin/sh $ZSH/tools/upgrade.sh
# update the zsh file # update the zsh file
_update_zsh_update _update_zsh_update
fi fi
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment