respect argument to cmake.sh
set -ex
main() {
- local td=$(mktemp -d) \
- version=2.8.11
+ local version=$1
local dependencies=(
curl
@@ -13,6 +12,8 @@ main() {
apt-get update
apt-get install --no-install-recommends -y ${dependencies[@]}
+ local td=$(mktemp -d)
+
pushd $td
curl https://cmake.org/files/v${version%.*}/cmake-$version.tar.gz | \
