trying to get installer working

This commit is contained in:
2023-05-20 13:37:56 -07:00
parent 8ab2a67e46
commit 6ffd91151e
7 changed files with 89 additions and 7 deletions

View File

@@ -12,6 +12,7 @@ echo "" > README.md
echo "Created a fresh repo for your ${PROJECTNAME} project." >> README.md
# Initialize a new Git repository
echo -e "\n\e[32mSetup Git Locally\e[0m\n";
git init
git add .
git commit -m "Initial commit of new project $PROJECTNAME"

View File

@@ -2,6 +2,8 @@
PROJECTNAME=$(basename "$(pwd)")
echo -e "\n\e[32mSetup Git Remotely\e[0m\n";
if [ "$DEBUG" = "true" ]; then
# Debugging
echo "DEBUGGING"
@@ -40,8 +42,6 @@ if [ "$DEBUG" = "true" ]; then
echo "$SSH_URL"
fi
echo "Repository '$PROJECTNAME' created successfully on Gitea."
# Add new remote repository
git remote add origin "$SSH_URL"
git remote -v