Commit d978f385 authored by Marc Cornellà's avatar Marc Cornellà
Browse files

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

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