fix asdf upgrade_system section

This commit is contained in:
Tony Blyler 2023-10-03 22:20:38 -04:00
parent c40b546534
commit 6c60e7d127
No known key found for this signature in database

View file

@ -40,6 +40,17 @@ upgrade_system() {
if command -v asdf &> /dev/null; then if command -v asdf &> /dev/null; then
asdf update || true asdf update || true
asdf plugin update --all asdf plugin update --all
asdf plugin list | awk -v TOOL_VERSIONS_FILE="${HOME}/.tool-versions" '{
plugins[$0] = 1
} END {
while ((getline < TOOL_VERSIONS_FILE) > 0) {
if (!plugins[$0]) {
print $0
}
}
}' | xargs -n 1 asdf plugin add
asdf install
echo -e 'package\tversion\tlatest\tstatus' echo -e 'package\tversion\tlatest\tstatus'
awk '{ awk '{
package = $1 package = $1