Update qoder-plugin/setup-qodercli.sh

Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
This commit is contained in:
panxiaojun233
2026-03-12 19:21:52 +08:00
committed by GitHub
parent 27bb3f88cf
commit 88418c40a3
+8
View File
@@ -26,7 +26,15 @@ fi
# Qodercli config file
QODER_CONFIG="${QODER_HOME:-$HOME}/.qoder.json"
CONFIG_DIR="$(dirname "${QODER_CONFIG}")"
# Ensure config directory exists
if [ ! -d "${CONFIG_DIR}" ]; then
if ! mkdir -p "${CONFIG_DIR}"; then
echo -e "${YELLOW}Error: Failed to create config directory ${CONFIG_DIR}${NC}" >&2
exit 1
fi
fi
echo -e "${BLUE}━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━${NC}"
echo -e "${BLUE} cli-anything Plugin for Qodercli${NC}"
echo -e "${BLUE}━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━${NC}"