diff options
| author | Trey Bastian <hello@treybastian.com> | 2026-04-08 16:57:55 +0100 |
|---|---|---|
| committer | Trey Bastian <hello@treybastian.com> | 2026-04-08 16:57:55 +0100 |
| commit | cf41deef9260bd205eb9e478fa4ada62106a2f6b (patch) | |
| tree | 7fbfe82ecd1d3099cc2309f594862d2af24eedc5 | |
| parent | cdfe027884b38a20682a48f67af4a5dce738b66a (diff) | |
fixing new-project bugs
| -rwxr-xr-x | git-shell-commands/new-project | 2 | ||||
| -rwxr-xr-x | git-shell-commands/new-repo | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/git-shell-commands/new-project b/git-shell-commands/new-project index 5b9b1aa..568c158 100755 --- a/git-shell-commands/new-project +++ b/git-shell-commands/new-project @@ -26,7 +26,7 @@ if [[ $REPLY =~ ^[Yy]$ ]]; then fi echo "git url: ${USER}@${HOSTNAME}:${PROJECT_NAME}" -if [[ $REPLY =~^[Yy]$ ]]; then +if [[ $REPLY =~ ^[Yy]$ ]]; then echo "public repo: ${REMOTE_BASE_URL}/${PROJECT_NAME}" fi #vim: filetype=bash diff --git a/git-shell-commands/new-repo b/git-shell-commands/new-repo index f6b2dc8..4a32ad4 100755 --- a/git-shell-commands/new-repo +++ b/git-shell-commands/new-repo @@ -4,7 +4,7 @@ # ssh git@<host> new-repo <project name> # - follow the prompts -$PROJECT_NAME = $1 +PROJECT_NAME="$1" if [[ -z "$1" ]]; then echo "project name cannot be empty" exit 1 |
