Skip to content

Commit 499257c

Browse files
committed
add: debug version installation
Signed-off-by: wxiwnd <wxiwnd@outlook.com>
1 parent 261c302 commit 499257c

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

scripts/install_completion.sh

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,13 @@ if [ ! -d /etc/bash_completion.d ]; then
99
exit 1
1010
fi
1111

12+
# Install debug version if --debug is specified
13+
if [ "$1" = "--debug" ]; then
14+
echo "Installing debug version..."
15+
sudo cp scripts/bash_pinyin_completion_debug /etc/bash_completion.d/bash_pinyin_completion
16+
exit 0
17+
fi
18+
1219
# Install or upgrade the binary
1320
if [ -f /usr/bin/bash-pinyin-completion-rs ]; then
1421
echo "The binary /usr/bin/bash-pinyin-completion-rs already exists. Upgrading..."

0 commit comments

Comments
 (0)