diff options
| author | Trey Bastian <hello@treybastian.com> | 2026-04-08 16:54:50 +0100 |
|---|---|---|
| committer | Trey Bastian <hello@treybastian.com> | 2026-04-08 16:54:50 +0100 |
| commit | cdfe027884b38a20682a48f67af4a5dce738b66a (patch) | |
| tree | 05d4f77c3427f97a9375d4727369ba6329e29440 /git-shell-commands | |
| parent | 42b4403f6a55b5b2d722a7cb99f4092c4b9a494e (diff) | |
fixing new-project script
Diffstat (limited to 'git-shell-commands')
| -rwxr-xr-x | git-shell-commands/new-project | 6 |
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 |
