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() { ...@@ -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
} }
() { () {
......
#!/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"
......
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