aboutsummaryrefslogtreecommitdiff
path: root/git-shell-commands/new-repo
diff options
context:
space:
mode:
authorTrey Bastian <hello@treybastian.com>2025-10-30 12:21:49 +0000
committerTrey Bastian <hello@treybastian.com>2025-10-30 12:21:49 +0000
commitf66d64468e7c143c11e4ed78961a5fbf07748292 (patch)
tree4ea201c5d008fe343b2da98772abfb5fb1cd6e8d /git-shell-commands/new-repo
parent516540d833ef0ee0036118da8a74c7b190bcc26f (diff)
fixed the prompts since we don't have a psudotty
Diffstat (limited to 'git-shell-commands/new-repo')
-rwxr-xr-xgit-shell-commands/new-repo10
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}"