aboutsummaryrefslogtreecommitdiff
path: root/git-shell-commands
diff options
context:
space:
mode:
Diffstat (limited to 'git-shell-commands')
-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}"