#!/bin/bash set -euo pipefail PATH="/bin:/sbin:/usr/bin:/usr/sbin:/usr/local/bin:/usr/local/sbin" source environment source version for ver in ${versions[@]}; do VERSION=$(wget -q -O - $dl_prefix/ | grep -o "$ver.[0-9]" | tail -1) ./builder $VERSION done