fix(updater): refresh date of last update only on successful update

master
Marc Cornellà 6 years ago
parent cd4918c2cd
commit d978f385e5
  1. 2
      tools/check_for_upgrade.sh
  2. 2
      tools/upgrade.sh

@ -25,7 +25,9 @@ function update_last_updated_file() {
function update_ohmyzsh() { function update_ohmyzsh() {
ZSH="$ZSH" zsh -f "$ZSH/tools/upgrade.sh" --interactive ZSH="$ZSH" zsh -f "$ZSH/tools/upgrade.sh" --interactive
if [[ "$?" = (0|80) ]]; then
update_last_updated_file update_last_updated_file
fi
} }
() { () {

@ -1,7 +1,7 @@
#!/usr/bin/env zsh #!/usr/bin/env zsh
if [ -z "$ZSH_VERSION" ]; then if [ -z "$ZSH_VERSION" ]; then
exec zsh "$0" exec zsh "$0" "$@"
fi fi
cd "$ZSH" cd "$ZSH"

Loading…
Cancel
Save