Initial YakPanel commit

This commit is contained in:
Niranjan
2026-04-07 02:32:11 +05:30
parent 47e0977b72
commit d08a9a2ac1

View File

@@ -203,7 +203,9 @@ else
TMP_DIR="$(mktemp -d)"
trap 'rm -rf "$TMP_DIR"' EXIT
export GIT_TERMINAL_PROMPT=0
CLONE_ARGS=(git clone --depth 1)
# Disable credential helpers for this clone so anonymous HTTPS public repos work
# from curl|bash (no TTY); USER:TOKEN in REPO_URL is still used if present.
CLONE_ARGS=(git -c credential.helper= clone --depth 1)
if [ -n "$YAKPANEL_BRANCH" ]; then
CLONE_ARGS+=(--branch "$YAKPANEL_BRANCH")
fi