aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-x[-rw-r--r--]git-shell-commands/new-repo8
1 files changed, 6 insertions, 2 deletions
diff --git a/git-shell-commands/new-repo b/git-shell-commands/new-repo
index 66f822b..43879cf 100644..100755
--- a/git-shell-commands/new-repo
+++ b/git-shell-commands/new-repo
@@ -6,9 +6,9 @@
# ssh git@<host> new-repo
# - follow the prompts
-echo "oh look you are starting a project you won't finish again.\n"
+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
+if [[ $PROJECT_NAME != *.git ]]; then
$PROJECT_NAME = "${PROJECT_NAME}.git"
fi
read -p "what's the remote(leave blank if private)" REMOTE_URL
@@ -20,4 +20,8 @@ if [[ $REMOTE_URL ]]; then
echo "${REMOTE_URL}" >> "${PROJECT_NAME}/knot.conf"
fi
+echo "git url: ${USER}@${HOSTNAME}:${PROJECT_NAME}"
+if [[ $REMOTE_URL ]]; then
+ echo "public repo: ${REMOTE_URL}"
+fi
#vim: filetype=bash