File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed
Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -7,10 +7,10 @@ BINARY_NAME="ai-docs"
77INSTALL_DIR=" /usr/local/bin"
88
99# Detect OS and ARCH
10- OS=" $( uname | tr ' [:upper:] ' ' [:lower:] ' ) "
10+ OS=" $( uname) "
1111ARCH=" $( uname -m) "
1212case " $ARCH " in
13- x86_64) ARCH=" amd64 " ;;
13+ x86_64) ARCH=" x86_64 " ;;
1414 arm64|aarch64) ARCH=" arm64" ;;
1515 * ) echo " Unsupported architecture: $ARCH " ; exit 1 ;;
1616esac
@@ -20,7 +20,7 @@ TAG=$(curl -s "https://api.github.com/repos/$REPO/releases/latest" | grep '"tag_
2020TAG_NO_V=$( echo " $TAG " | sed ' s/^v//' )
2121
2222# Build download URL
23- FILENAME=" ${BINARY_NAME} _${TAG_NO_V} _ ${ OS} _${ARCH} .tar.gz"
23+ FILENAME=" ${BINARY_NAME} _${OS} _${ARCH} .tar.gz"
2424URL=" https://github.com/${REPO} /releases/download/${TAG} /${FILENAME} "
2525
2626# Download and extract
You can’t perform that action at this time.
0 commit comments