Diff

Differences From Artifact [ca3758bbcf]:

To Artifact [c2c2f1c92f]:


171
172
173
174
175
176
177
178




179
180
181
182
183
184
185
186
187
188
189
190
191
192
193




194
195
196
197
171
172
173
174
175
176
177

178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195

196
197
198
199
200
201
202
203







-
+
+
+
+














-
+
+
+
+




				;;
		esac
		kit_filename_platform="$(jq -crM .platform <<<"${info}")"
		kit_filename_tcl_version="$(jq -crM .tcl_version <<<"${info}")"
		kit_filename="${kit_filename_base}-${kit_filename_platform}-${kit_filename_tcl_version}${kit_filename_ext}"
	fi

	curl -sSL "${kit_url}" > "${kit_filename}"
	curl -sSL "${kit_url}" > "${kit_filename}" || (
		rm -f "${kit_filename}"
		exit 1
	) || exit 1
	chmod 755 "${kit_filename}"
else
	kit_sdk_url="$(jq -crM .kit_sdk_url <<<"${info}")"
	if [ "${kit_sdk_url}" = 'null' ]; then
		kit_sdk_url=''
	fi
	if [ "${kit_sdk_url}" = '' ]; then
		echo "No SDK available." >&2
		exit 1
	fi
	if [ -z "${kit_filename}" ]; then
		kit_filename="${kit_sdk_url//*\//}"
	fi

	curl -sSL "${kit_sdk_url}" > "${kit_filename}"
	curl -sSL "${kit_sdk_url}" > "${kit_filename}" || (
		rm -f "${kit_filename}"
		exit 1
	) || exit 1
fi

echo "Wrote: ${kit_filename}"
exit 0