#!/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"