File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -32,15 +32,16 @@ if [ -z "$LATEST_VERSION" ]; then
3232fi
3333
3434# Construct the binary name
35- BINARY_NAME=" sesh-${OS} -${ARCH} "
36- if [ " $OS " = " darwin" ]; then
37- BINARY_NAME=" sesh-darwin-${ARCH} "
38- elif [ " $OS " = " linux" ]; then
39- BINARY_NAME=" sesh-linux-${ARCH} "
40- else
41- echo " Unsupported operating system: $OS "
42- exit 1
43- fi
35+ BINARY_PREFIX=" awsesh"
36+ case " $OS " in
37+ darwin|linux)
38+ BINARY_NAME=" ${BINARY_PREFIX} -${OS} -${ARCH} "
39+ ;;
40+ * )
41+ echo " Unsupported operating system: $OS "
42+ exit 1
43+ ;;
44+ esac
4445
4546# Download URL
4647DOWNLOAD_URL=" https://github.com/elva-labs/awsesh/releases/download/${LATEST_VERSION} /${BINARY_NAME} "
7879cd - > /dev/null
7980rm -rf " $TMP_DIR "
8081
81- echo " Installation complete! You can now use 'sesh' from the command line."
82+ echo " Installation complete! You can now use 'sesh' from the command line."
You can’t perform that action at this time.
0 commit comments