aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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