diff options
| author | Trey Bastian <hello@treybastian.com> | 2025-10-30 12:21:49 +0000 |
|---|---|---|
| committer | Trey Bastian <hello@treybastian.com> | 2025-10-30 12:21:49 +0000 |
| commit | f66d64468e7c143c11e4ed78961a5fbf07748292 (patch) | |
| tree | 4ea201c5d008fe343b2da98772abfb5fb1cd6e8d | |
| parent | 516540d833ef0ee0036118da8a74c7b190bcc26f (diff) | |
fixed the prompts since we don't have a psudotty
| -rwxr-xr-x | git-shell-commands/new-repo | 10 |
1 files 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}" |
