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
case $repo_type in
private) echo "git clone https://${GITHUB_USER}:${GITHUB_ACCESS_TOKEN}@${repo_url#https://}" ;;
enterprise)
[ -n "$ENTERPRISE_USER" ] && [ -n "$ENTERPRISE_ACCESS_TOKEN" ] && \
echo "git clone https://${ENTERPRISE_USER}:${ENTERPRISE_ACCESS_TOKEN}@${repo_url#https://} ${ENTERPRISE_ADDONS}"
;;
*) echo "git clone $repo_url" ;;
enterprise) echo "git clone https://${ENTERPRISE_USER}:${ENTERPRISE_ACCESS_TOKEN}@${repo_url#https://} ${ENTERPRISE_ADDONS}" ;;
public) echo "git clone $repo_url" ;;
esac
}