fix asdf upgrade_system section
This commit is contained in:
parent
c40b546534
commit
6c60e7d127
1 changed files with 11 additions and 0 deletions
|
@ -40,6 +40,17 @@ upgrade_system() {
|
|||
if command -v asdf &> /dev/null; then
|
||||
asdf update || true
|
||||
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'
|
||||
awk '{
|
||||
package = $1
|
||||
|
|
Loading…
Reference in a new issue