diff --git a/gitserver/create_repo b/gitserver/create_repo index 912a062..d78f2bf 100755 --- a/gitserver/create_repo +++ b/gitserver/create_repo @@ -1,7 +1,7 @@ #!/bin/bash repo=$1 -if [ $repo != *.git ]; then +if [[ "$repo" != *.git ]]; then repo="${repo}.git" fi echo "Creating $repo"