From 1b9ca8dcbda19b0e6093c6184ca61da7739e240c Mon Sep 17 00:00:00 2001 From: christiangoeschel Date: Fri, 27 Sep 2024 22:36:07 -0400 Subject: [PATCH] Fixed buggy error handling that returns 1 on actual repo creation success --- server/mkrepo | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/server/mkrepo b/server/mkrepo index 2539bbe..589508d 100644 --- a/server/mkrepo +++ b/server/mkrepo @@ -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 } -- 2.39.5