Diff

Differences From Artifact [5f112c56ea]:

To Artifact [fe769d0473]:


    55     55   
    56     56   	exit 1
    57     57   fi
    58     58   
    59     59   kit_url="$(jq -crM .kit_url <<<"${info}")"
    60     60   if [ -z "${kit_filename}" ]; then
    61     61   	kit_filename="${kit_url//*\//}"
           62  +	case "${kit_filename}" in
           63  +		*.*)
           64  +			kit_filename_base="${kit_filename//.*/}"
           65  +			kit_filename_ext=".${kit_filename//*./}"
           66  +			;;
           67  +		*)
           68  +			kit_filename_base="${kit_filename}"
           69  +			kit_filename_ext=''
           70  +			;;
           71  +	esac
           72  +	kit_filename_platform="$(jq -crM .platform <<<"${info}")"
           73  +	kit_filename_tcl_version="$(jq -crM .tcl_version <<<"${info}")"
           74  +	kit_filename="${kit_filename_base}-${kit_filename_platform}-${kit_filename_tcl_version}${kit_filename_ext}"
    62     75   fi
    63     76   
    64     77   curl -sSL "${kit_url}" > "${kit_filename}"
    65     78   chmod 755 "${kit_filename}"
    66     79   
    67     80   echo "Wrote: ${kit_filename}"
    68     81   exit 0