Check-in [0bc476af1b]
Overview
Comment:Delete incomplete files
Downloads: Tarball | ZIP archive | SQL archive
Timelines: family | ancestors | descendants | both | trunk
Files: files | file ages | folders
SHA1: 0bc476af1b20d93500ec9082569ce8051f636338
User & Date: rkeene on 2020-01-22 18:44:39
Other Links: manifest | tags
Context
2020-01-22
18:45
KitCreator 0.12.0 check-in: b97ca4d43f user: rkeene tags: trunk, 0.12.0
18:44
Delete incomplete files check-in: 0bc476af1b user: rkeene tags: trunk
18:44
Upgrade to Tcl/Tk 8.6.10 check-in: e6fc8fa373 user: rkeene tags: trunk
Changes

Modified build/utils/download-api-client from [ca3758bbcf] to [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
				;;
		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}"



	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}"



fi

echo "Wrote: ${kit_filename}"
exit 0







|
>
>
>














|
>
>
>




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}" || (
		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}" || (
		rm -f "${kit_filename}"
		exit 1
	) || exit 1
fi

echo "Wrote: ${kit_filename}"
exit 0