Skip to content

"CLI-Anything: Making ALL Software Agent-Native" -- CLI-Hub: https://clianything.cc/

Python

Update qoder-plugin/setup-qodercli.sh

panxiaojun23388418c40a350
diff --git a/qoder-plugin/setup-qodercli.sh b/qoder-plugin/setup-qodercli.sh
index 3ffe7f1a7..80d1ca864 100755
--- a/qoder-plugin/setup-qodercli.sh
+++ b/qoder-plugin/setup-qodercli.sh
@@ -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}"