From f66d64468e7c143c11e4ed78961a5fbf07748292 Mon Sep 17 00:00:00 2001 From: Trey Bastian Date: Thu, 30 Oct 2025 12:21:49 +0000 Subject: fixed the prompts since we don't have a psudotty --- git-shell-commands/new-repo | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/git-shell-commands/new-repo b/git-shell-commands/new-repo index 43879cf..fa0b26b 100755 --- a/git-shell-commands/new-repo +++ b/git-shell-commands/new-repo @@ -7,11 +7,13 @@ # - follow the prompts echo "oh look you are starting a project you won't finish again." -read -p "whats this one called? " PROJECT_NAME -if [[ $PROJECT_NAME != *.git ]]; then - $PROJECT_NAME = "${PROJECT_NAME}.git" +echo "What is your projects name?" +read PROJECT_NAME +if [[ $PROJECT_NAME!=*.git ]]; then + $PROJECT_NAME="${PROJECT_NAME}.git" fi -read -p "what's the remote(leave blank if private)" REMOTE_URL +echo "What's the mirror repo remote url?(leave blank if private)" +read REMOTE_URL git --bare init "${PROJECT_NAME}" -- cgit v1.2.3