aboutsummaryrefslogtreecommitdiff
path: root/git-shell-commands
diff options
context:
space:
mode:
authorTrey Bastian <hello@treybastian.com>2026-04-08 17:00:04 +0100
committerTrey Bastian <hello@treybastian.com>2026-04-08 17:00:04 +0100
commit9cac75c2f8626f7f3208aad61857b9d9f0732c75 (patch)
tree0e156d950587a542aa6c6826c84076d29bcc9563 /git-shell-commands
parentcf41deef9260bd205eb9e478fa4ada62106a2f6b (diff)
fixed incorrect regex
Diffstat (limited to 'git-shell-commands')
-rwxr-xr-xgit-shell-commands/new-repo2
1 files changed, 1 insertions, 1 deletions
diff --git a/git-shell-commands/new-repo b/git-shell-commands/new-repo
index 4a32ad4..e85c226 100755
--- a/git-shell-commands/new-repo
+++ b/git-shell-commands/new-repo
@@ -9,7 +9,7 @@ if [[ -z "$1" ]]; then
echo "project name cannot be empty"
exit 1
fi
-if [[ $PROJECT_NAME!=*.git ]]; then
+if [[ $PROJECT_NAME != *.git ]]; then
PROJECT_NAME="${PROJECT_NAME}.git"
fi