Skip to content

Commit 77eb58d

Browse files
author
Arjun Balaji
committed
run chat_cli executable
1 parent f0ca415 commit 77eb58d

1 file changed

Lines changed: 5 additions & 13 deletions

File tree

terminal-bench-test/setup_amazon_q.sh

Lines changed: 5 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -45,24 +45,16 @@ AWS_ACCESS_KEY_ID="$QCHAT_ACCESSKEY" AWS_SECRET_ACCESS_KEY="$Q_SECRET_ACCESS_KEY
4545
echo "Extracting qchat.zip..."
4646
unzip -q qchat.zip
4747

48-
# Debug: Show extracted structure
49-
echo "Extracted contents:"
50-
ls -la
48+
# Extract and install - the executable is named chat_cli
49+
# qchat → runs /usr/local/bin/qchat directly → which is the chat_cli binary
5150

52-
# Extract and install mimicing the official release
53-
if [ -d "q" ] && [ -f "q/bin/qchat" ]; then
54-
cp q/bin/qchat /usr/local/bin/qchat
55-
cp q/bin/q /usr/local/bin/q 2>/dev/null || ln -sf /usr/local/bin/qchat /usr/local/bin/q
56-
chmod +x /usr/local/bin/qchat /usr/local/bin/q
57-
echo "qchat installed successfully"
58-
elif [ -f "qchat" ]; then
59-
# Fallback if it's just the binary
60-
cp qchat /usr/local/bin/qchat
51+
if [ -f "chat_cli" ]; then
52+
cp chat_cli /usr/local/bin/qchat
6153
ln -sf /usr/local/bin/qchat /usr/local/bin/q
6254
chmod +x /usr/local/bin/qchat
6355
echo "qchat installed successfully"
6456
else
65-
echo "ERROR: qchat not found in expected locations"
57+
echo "ERROR: chat_cli executable not found"
6658
ls -la
6759
exit 1
6860
fi

0 commit comments

Comments
 (0)