代码拉取完成,页面将自动刷新
#!/usr/bin/env bash
# Set version to latest unless set by user
if [ -z "$VERSION" ]; then
VERSION="3.6.1"
fi
echo "Downloading version ${VERSION}..."
# OS information (contains e.g. darwin x86_64)
UNAME=`uname -a | awk '{print tolower($0)}'`
if [[ ($UNAME == *"mac os x"*) || ($UNAME == *darwin*) ]]
then
PLATFORM="darwin"
else
PLATFORM="linux"
fi
if [[ ($UNAME == *x86_64*) || ($UNAME == *amd64*) ]]
then
ARCH="amd64"
else
echo "Currently, there are no 32bit binaries provided."
echo "You will need to build binaries yourself."
exit 1
fi
# Download binary
curl -L -o crane "https://github.com/michaelsauter/crane/releases/download/v${VERSION}/crane_${PLATFORM}_${ARCH}"
# Make binary executable
chmod +x crane
echo "Done."
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。