You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
# initArch discovers the architecture for this system.
27
+
init_arch() {
28
+
ARCH=$(uname -m)
29
+
case$ARCHin
30
+
armv5*) ARCH="armv5";;
31
+
armv6*) ARCH="armv6";;
32
+
armv7*) ARCH="arm";;
33
+
aarch64) ARCH="arm64";;
34
+
x86) ARCH="386";;
35
+
x86_64) ARCH="amd64";;
36
+
i686) ARCH="386";;
37
+
i386) ARCH="386";;
38
+
esac
39
+
}
40
+
41
+
init_latest_version() {
42
+
VERSION=$(curl -Ls $DRYCC_BIN_URL_BASE|grep /drycc/workflow-cli/releases/tag/ | sed -E 's/.*\/drycc\/workflow-cli\/releases\/tag\/(v[0-9\.]+)".*/\1/g'| head -1)
43
+
}
44
+
45
+
init_arch
46
+
init_latest_version
47
+
check_platform_arch
48
+
49
+
DRYCC_CLI="drycc-${VERSION}-${PLATFORM}-${ARCH}"
50
+
DRYCC_CLI_PATH="${DRYCC_CLI}"
51
+
if [ "${VERSION}"!='stable' ];then
52
+
DRYCC_CLI_PATH="${VERSION}/${DRYCC_CLI_PATH}"
53
+
fi
54
+
55
+
echo"Downloading ${DRYCC_CLI} From Google Cloud Storage..."
56
+
echo"Downloading binary from here: ${DRYCC_BIN_URL_BASE}/download/${DRYCC_CLI_PATH}"
0 commit comments