-
Notifications
You must be signed in to change notification settings - Fork 74
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Upgrading a package does not add/remove links #28
Comments
That is true. |
I was thinking in actually just running This would also upgrade packages which were installed with a tag, effectively making them upgradable. cc @YarekTyshchenko |
I often run: basher outdated | xargs -n 1 basher upgrade But I have seen problems where weird repo history caused the simple git commands run by basher to fail. I'd be happy with a re-install instead of upgrade. Makes the whole thing simpler, and therefore more predictable when shipping software. +1. |
This only causes a problem when the repo is saving information inside its own directory structure, which I would argue it shouldn't (but basher does 😭 ) |
@juanibiapina Hacktoberfest is right around the corner ;) @YarekTyshchenko You might like this.. while read -r pkg; do basher uninstall "$pkg" && basher install "$pkg"; done < <(basher outdated) |
The upgrade command issues a pull, but before that it should unlink everything, then relink after pulling. Otherwise, new commands, completions and man pages aren't installed, and old ones aren't removed.
The text was updated successfully, but these errors were encountered: