7 lines
188 B
Bash
7 lines
188 B
Bash
#!/bin/bash
|
|
|
|
# Get version number from cmake website
|
|
VERSION=$(curl -s -L https://cmake.org/download/ | grep -o -E 'Latest Release \((.*)\)' | cut -d '(' -f2 | tr -d ')')
|
|
|
|
echo "$VERSION"
|