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    171   				;;
   172    172   		esac
   173    173   		kit_filename_platform="$(jq -crM .platform <<<"${info}")"
   174    174   		kit_filename_tcl_version="$(jq -crM .tcl_version <<<"${info}")"
   175    175   		kit_filename="${kit_filename_base}-${kit_filename_platform}-${kit_filename_tcl_version}${kit_filename_ext}"
   176    176   	fi
   177    177   
   178         -	curl -sSL "${kit_url}" > "${kit_filename}"
          178  +	curl -sSL "${kit_url}" > "${kit_filename}" || (
          179  +		rm -f "${kit_filename}"
          180  +		exit 1
          181  +	) || exit 1
   179    182   	chmod 755 "${kit_filename}"
   180    183   else
   181    184   	kit_sdk_url="$(jq -crM .kit_sdk_url <<<"${info}")"
   182    185   	if [ "${kit_sdk_url}" = 'null' ]; then
   183    186   		kit_sdk_url=''
   184    187   	fi
   185    188   	if [ "${kit_sdk_url}" = '' ]; then
................................................................................
   186    189   		echo "No SDK available." >&2
   187    190   		exit 1
   188    191   	fi
   189    192   	if [ -z "${kit_filename}" ]; then
   190    193   		kit_filename="${kit_sdk_url//*\//}"
   191    194   	fi
   192    195   
   193         -	curl -sSL "${kit_sdk_url}" > "${kit_filename}"
          196  +	curl -sSL "${kit_sdk_url}" > "${kit_filename}" || (
          197  +		rm -f "${kit_filename}"
          198  +		exit 1
          199  +	) || exit 1
   194    200   fi
   195    201   
   196    202   echo "Wrote: ${kit_filename}"
   197    203   exit 0