mirror of
https://bitbucket.org/siakitem/my-pi.git
synced 2026-08-28 07:23:06 +00:00
15 lines
477 B
Bash
Executable File
15 lines
477 B
Bash
Executable File
#!/bin/sh
|
|
|
|
set -u
|
|
|
|
PACKAGE_SOURCE=${PI_PACKAGE_SOURCE:-git:git@bitbucket.org:siakitem/my-pi.git}
|
|
|
|
if ! command -v pi >/dev/null 2>&1; then
|
|
printf '错误: 找不到 pi,无法卸载组合包。请确保 pi 位于 PATH。\n' >&2
|
|
exit 127
|
|
fi
|
|
|
|
printf '正在从 Pi 中移除组合包:%s\n' "$PACKAGE_SOURCE"
|
|
pi remove "$PACKAGE_SOURCE"
|
|
printf '%s\n' '组合包已移除。CodeGraph、Kotlin LSP、JDT LS 和 Java 均未卸载,因为它们可能仍被其他项目使用。'
|