Skip to content

Commit 340c07c

Browse files
authored
feat(scripts): Add Q CLI installation script (#823)
* feat(scripts): Add Q CLI installation script Add comprehensive installation script for Q CLI that: - Detects platform (macOS/Linux) and architecture - Downloads appropriate package from release CDN - Handles both glibc and musl Linux variants - Provides interactive installation with progress feedback - Includes cleanup of temporary files 🤖 Assisted by Amazon Q Developer
1 parent 018fd3c commit 340c07c

File tree

2 files changed

+491
-3
lines changed

2 files changed

+491
-3
lines changed

bundle/linux/install.sh

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -140,14 +140,18 @@ if [ -n "${Q_INSTALL_GLOBAL:-}" ]; then
140140
install -m 755 "$SCRIPT_DIR/bin/qchat" /usr/local/bin/
141141
install -m 755 "$SCRIPT_DIR/bin/qterm" /usr/local/bin/
142142

143-
/usr/local/bin/q integrations install dotfiles
144-
/usr/local/bin/q setup --global "$@"
143+
if [ -z "${Q_SKIP_SETUP:-}" ]; then
144+
/usr/local/bin/q integrations install dotfiles
145+
/usr/local/bin/q setup --global "$@"
146+
fi
145147
else
146148
mkdir -p "$HOME/.local/bin"
147149

148150
install -m 755 "$SCRIPT_DIR/bin/q" "$HOME/.local/bin/"
149151
install -m 755 "$SCRIPT_DIR/bin/qchat" "$HOME/.local/bin/"
150152
install -m 755 "$SCRIPT_DIR/bin/qterm" "$HOME/.local/bin/"
151153

152-
"$HOME/.local/bin/q" setup "$@"
154+
if [ -z "${Q_SKIP_SETUP:-}" ]; then
155+
"$HOME/.local/bin/q" setup "$@"
156+
fi
153157
fi

0 commit comments

Comments
 (0)