aboutsummaryrefslogtreecommitdiff
path: root/git-shell-commands
diff options
context:
space:
mode:
Diffstat (limited to 'git-shell-commands')
-rwxr-xr-xgit-shell-commands/new-project6
1 files changed, 3 insertions, 3 deletions
diff --git a/git-shell-commands/new-project b/git-shell-commands/new-project
index 3ef14f4..5b9b1aa 100755
--- a/git-shell-commands/new-project
+++ b/git-shell-commands/new-project
@@ -7,11 +7,11 @@
# ssh git@<host> new-project
# - follow the prompts
-REMOTE_BASE_URL = "git@treybastian.com:repos/"
+REMOTE_BASE_URL="git@treybastian.com:repos"
echo "oh look you are starting a project you won't finish again."
echo "What is your projects name?"
read PROJECT_NAME
-if [[ $PROJECT_NAME!=*.git ]]; then
+if [[ $PROJECT_NAME != *.git ]]; then
PROJECT_NAME="${PROJECT_NAME}.git"
fi
read -p "Is this public?" -n 1 -r
@@ -26,7 +26,7 @@ if [[ $REPLY =~ ^[Yy]$ ]]; then
fi
echo "git url: ${USER}@${HOSTNAME}:${PROJECT_NAME}"
-if [[ $REMOTE_URL ]]; then
+if [[ $REPLY =~^[Yy]$ ]]; then
echo "public repo: ${REMOTE_BASE_URL}/${PROJECT_NAME}"
fi
#vim: filetype=bash