r-darwish / topgrade

Upgrade everything
GNU General Public License v3.0
3.37k stars 162 forks source link

antigen update is skipped when antigen selfupdate failed #1031

Open xyz1001 opened 1 year ago

xyz1001 commented 1 year ago

What did you expect to happen?

antigen update will not be skipped when antigen selfupdate is failed because antigen is not installed by git clone

What actually happened?

antigen update is skipped when antigen selfupdate failed.

Additional Details

Arch Linux pacman 9.0.1

The command that updates antigen is /usr/bin/zsh -l -c source ~/.zshrc && antigen selfupdate && antigen update. When antigen is not installed by clone the repo, error occurred when execute antigen selfupdate with output Your copy of antigen doesn't appear to be a git clone. The 'selfupdate' command cannot work in this case.. However, this should not break antigen update which used to update zsh plugins. I think it may be better that change this command to /usr/bin/zsh -l -c source ~/.zshrc && (antigen selfupdate; antigen update).