From cdfe027884b38a20682a48f67af4a5dce738b66a Mon Sep 17 00:00:00 2001 From: Trey Bastian Date: Wed, 8 Apr 2026 16:54:50 +0100 Subject: fixing new-project script --- git-shell-commands/new-project | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'git-shell-commands') 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@ 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 -- cgit v1.2.3