]> git.christiangoeschel.com Git - mygit.git/commitdiff
Fixed buggy error handling that returns 1 on actual repo creation success
authorchristiangoeschel <cndjomouo@icloud.com>
Sat, 28 Sep 2024 02:36:07 +0000 (22:36 -0400)
committerchristiangoeschel <cndjomouo@icloud.com>
Sat, 28 Sep 2024 02:36:07 +0000 (22:36 -0400)
server/mkrepo

index 2539bbe8e18dcc434fd6f920b15d9e6d8077e4ba..589508d223a701ae7f9f6af3a7cf328ba1a303c3 100644 (file)
@@ -40,11 +40,13 @@ function main() {
   REPO_NAME="${1}.git"
 
   create_repo
-  if [[ "${?}" != "" ]]; then
+  if [[ "${?}" != "0" ]]; then
     echo "${ERR_MSG}"
     exit 1
   fi
 
+  echo "Successfully created repository ${REPO_NAME}"
+
   exit 0
 }