File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -45,24 +45,16 @@ AWS_ACCESS_KEY_ID="$QCHAT_ACCESSKEY" AWS_SECRET_ACCESS_KEY="$Q_SECRET_ACCESS_KEY
4545echo " Extracting qchat.zip..."
4646unzip -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"
6456else
65- echo " ERROR: qchat not found in expected locations "
57+ echo " ERROR: chat_cli executable not found"
6658 ls -la
6759 exit 1
6860fi
You can’t perform that action at this time.
0 commit comments