From 516540d833ef0ee0036118da8a74c7b190bcc26f Mon Sep 17 00:00:00 2001 From: Trey Bastian Date: Thu, 30 Oct 2025 12:16:39 +0000 Subject: fixed check I think --- git-shell-commands/new-repo | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) mode change 100644 => 100755 git-shell-commands/new-repo (limited to 'git-shell-commands') diff --git a/git-shell-commands/new-repo b/git-shell-commands/new-repo old mode 100644 new mode 100755 index 66f822b..43879cf --- a/git-shell-commands/new-repo +++ b/git-shell-commands/new-repo @@ -6,9 +6,9 @@ # ssh git@ 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 -- cgit v1.2.3