aboutsummarylogtreecommitdiffstats
path: root/update-tools-version.sh
blob: 90e48af56c7babb8dbc46e39f43dca8bac574799 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
#!/bin/bash

# Read the .tool-versions file
while read -r line; do
  # Extract the tool name
  tool=$(echo $line | awk '{print $1}')
  
  # Update the tool to the latest version
  asdf install $tool latest
  asdf local $tool latest
done < .tool-versions

echo "All tools have been updated to their latest versions."