i use arch btw
0
fork

Configure Feed

Select the types of activity you want to include in your feed.

Remove asdf cleanup script

-17
-17
bin/bin/cleanup_asdf.sh
··· 1 - #!/usr/bin/env bash 2 - 3 - # Loop over each line of the .tool-versions file 4 - while read -r line; do 5 - IFS=' ' read -r -a tool_and_versions <<< "$line" 6 - # Split out the tool name and versions 7 - tool_name="${tool_and_versions[0]}" 8 - global_versions=("${tool_and_versions[@]:1}") 9 - 10 - # Loop over each version of the tool name 11 - for version in $(asdf list $tool_name); do 12 - # When version not in `global_versions` array from .tool-versions file 13 - if [[ ! " ${global_versions[@]} " =~ " ${version} " ]]; then 14 - asdf uninstall $tool_name $version 15 - fi 16 - done 17 - done < ~/.tool-versions