@@ -25,7 +25,9 @@ function update_last_updated_file() {
function update_ohmyzsh() {
ZSH="$ZSH" zsh -f "$ZSH/tools/upgrade.sh" --interactive
- update_last_updated_file
+ if [[ "$?" = (0|80) ]]; then
+ update_last_updated_file
+ fi
}
() {
@@ -1,7 +1,7 @@
#!/usr/bin/env zsh
if [ -z "$ZSH_VERSION" ]; then
- exec zsh "$0"
+ exec zsh "$0" "$@"
fi
cd "$ZSH"