Removed Debugging
* Removed Debugging * Updated Documentation * Remove Joomla README.txt with finalize script
This commit is contained in:
@@ -4,14 +4,6 @@ PROJECTNAME=$(basename "$(pwd)")
|
||||
|
||||
echo -e "\n\e[32mSetup Git Remotely\e[0m\n";
|
||||
|
||||
if [ "$DEBUG" = "true" ]; then
|
||||
# Debugging
|
||||
echo "DEBUGGING"
|
||||
echo "GITEA API url: $GITEA_API_URL"
|
||||
echo "Access token: $ACCESS_TOKEN"
|
||||
echo "Project name: $PROJECTNAME";
|
||||
fi
|
||||
|
||||
DESC="Repo auto created by Joomla remote git script creator for $PROJECTNAME"
|
||||
|
||||
# Create the repository using Gitea API
|
||||
@@ -21,11 +13,6 @@ RESPONSE=$(curl -s -X POST \
|
||||
-d "{\"name\":\"$PROJECTNAME\",\"private\": true,\"description\": \"$DESC\"}" \
|
||||
$GITEA_API_URL/user/repos)
|
||||
|
||||
if [ "$DEBUG" = "true" ]; then
|
||||
echo "The RESPONSE:"
|
||||
echo "$RESPONSE"
|
||||
fi
|
||||
|
||||
if [ -z "$RESPONSE" ] || [ "$(echo "$RESPONSE" | jq -r '.id')" = "null" ]; then
|
||||
echo "Error: Failed to create $PROJECTNAME repository."
|
||||
exit 1
|
||||
@@ -37,11 +24,6 @@ if [ "$SSH_URL" = "null" ]; then
|
||||
exit 1
|
||||
fi
|
||||
|
||||
if [ "$DEBUG" = "true" ]; then
|
||||
echo "SSH URL:"
|
||||
echo "$SSH_URL"
|
||||
fi
|
||||
|
||||
# Add new remote repository
|
||||
git remote add origin "$SSH_URL"
|
||||
git remote -v
|
||||
|
||||
Reference in New Issue
Block a user