Downloads the latest version: #!/usr/bin/env bash ckan_ver=$(curl -s 'https://github.com/KSP-CKAN/CKAN/releases/latest' | sed -r 's/.*tag\/v(.*)\">.*/\1/') ckanexe_url='https://github.com/KSP-CKAN/CKAN/releases/download/v'"${ckan_ver}"'/ckan.exe' curl -L -o "ckan.exe" "${ckanexe_url}"