This commit is contained in:
yhaelopez
2023-12-24 12:14:33 -07:00
parent da8c682701
commit c5b7d3a6ba

View File

@@ -8,11 +8,8 @@ construct_clone_command() {
local repo_url=$2 local repo_url=$2
case $repo_type in case $repo_type in
private) echo "git clone https://${GITHUB_USER}:${GITHUB_ACCESS_TOKEN}@${repo_url#https://}" ;; private) echo "git clone https://${GITHUB_USER}:${GITHUB_ACCESS_TOKEN}@${repo_url#https://}" ;;
enterprise) enterprise) echo "git clone https://${ENTERPRISE_USER}:${ENTERPRISE_ACCESS_TOKEN}@${repo_url#https://} ${ENTERPRISE_ADDONS}" ;;
[ -n "$ENTERPRISE_USER" ] && [ -n "$ENTERPRISE_ACCESS_TOKEN" ] && \ public) echo "git clone $repo_url" ;;
echo "git clone https://${ENTERPRISE_USER}:${ENTERPRISE_ACCESS_TOKEN}@${repo_url#https://} ${ENTERPRISE_ADDONS}"
;;
*) echo "git clone $repo_url" ;;
esac esac
} }