diff options
| author | Trey Bastian <hello@treybastian.com> | 2025-10-30 12:16:39 +0000 |
|---|---|---|
| committer | Trey Bastian <hello@treybastian.com> | 2025-10-30 12:16:39 +0000 |
| commit | 516540d833ef0ee0036118da8a74c7b190bcc26f (patch) | |
| tree | 9dbc75a1cfb9bd3db05529a4978fa8f911a659f0 | |
| parent | 739e849e108892884c5581464403726b482797a4 (diff) | |
fixed check I think
| -rwxr-xr-x[-rw-r--r--] | git-shell-commands/new-repo | 8 |
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 |
