Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 7 additions & 0 deletions update.sh
Original file line number Diff line number Diff line change
Expand Up @@ -253,11 +253,18 @@ function update_node_version() {
}

pids=()
baseuri_checked=""

for version in "${versions[@]}"; do
parentpath=$(dirname "${version}")
versionnum=$(basename "${version}")
baseuri=$(get_config "${parentpath}" "baseuri")
if [ "${baseuri_checked}" != "${baseuri}" ]; then
if ! curl -sS --fail --compressed --max-time 15 "${baseuri}/index.json" > /dev/null; then
fatal "Unable to reach ${baseuri}; please check network connectivity or the baseuri configuration."
fi
baseuri_checked="${baseuri}"
fi
update_version=$(in_versions_to_update "${version}")

[ "${update_version}" -eq 0 ] && info "Updating version ${version}..."
Expand Down