Skip to content

Commit 2bbf4d2

Browse files
authored
fix: use correct release asset name in installer (#42)
1 parent 53f1460 commit 2bbf4d2

1 file changed

Lines changed: 11 additions & 10 deletions

File tree

install.sh

Lines changed: 11 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -32,15 +32,16 @@ if [ -z "$LATEST_VERSION" ]; then
3232
fi
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
4647
DOWNLOAD_URL="https://github.com/elva-labs/awsesh/releases/download/${LATEST_VERSION}/${BINARY_NAME}"
@@ -78,4 +79,4 @@ fi
7879
cd - > /dev/null
7980
rm -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."

0 commit comments

Comments
 (0)