#!/bin/sh # Jim Tcl download script for 64-bit architectures JIM_REL_URL='https://api.github.com/repos/dbohdan/jimsh-static/releases/latest' JIM_ARCH_TAG="$(uname -m | sed 's/x86_64/amd64/;s/aarch64/arm64v8/;s/i.86/i386/')" JIM_DL_URL="$(curl -fsSL "$JIM_REL_URL"| jq -r '.assets[].browser_download_url' | grep "$JIM_ARCH_TAG")" curl -fsSL -o ./jimsh "$JIM_DL_URL" chmod +x ./jimsh