aboutsummaryrefslogtreecommitdiff
path: root/git-shell-commands
diff options
context:
space:
mode:
authorTrey Bastian <hello@treybastian.com>2026-04-08 16:57:55 +0100
committerTrey Bastian <hello@treybastian.com>2026-04-08 16:57:55 +0100
commitcf41deef9260bd205eb9e478fa4ada62106a2f6b (patch)
tree7fbfe82ecd1d3099cc2309f594862d2af24eedc5 /git-shell-commands
parentcdfe027884b38a20682a48f67af4a5dce738b66a (diff)
fixing new-project bugs
Diffstat (limited to 'git-shell-commands')
-rwxr-xr-xgit-shell-commands/new-project2
-rwxr-xr-xgit-shell-commands/new-repo2
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