#!/bin/bash set -ue . functions.sh cd "$(cd "${0%/*}" && pwd -P)"; IFS=' ' read -ra versions <<< "$(get_versions . "$@")" if [ ${#versions[@]} -eq 0 ]; then fatal "No valid versions found!" fi # Global variables # Get architecure and use this as target architecture for docker image # See details in function.sh # TODO: Should be able to specify target architecture manually arch=$(get_arch) yarnVersion="$(curl -sSL --compressed https://yarnpkg.com/latest-version)" function update_node_version { local baseuri=$1 shift local version=$1 shift local template=$1 shift local dockerfile=$1 shift local variant= if [[ $# -eq 1 ]]; then variant=$1 shift fi fullVersion="$(curl -sSL --compressed "$baseuri" | grep '