From 095fd9d705e7aca78efda1b6510d9e5f83b843af Mon Sep 17 00:00:00 2001
From: Joel Grunbaum <joelgrun@gmail.com>
Date: Sat, 18 Sep 2021 13:02:13 +0000
Subject: [PATCH] test-email returns curl return code

---
 main.sh |    4 +++-
 1 files changed, 3 insertions(+), 1 deletions(-)

diff --git a/main.sh b/main.sh
index 3d5e868..9bbdb16 100755
--- a/main.sh
+++ b/main.sh
@@ -351,6 +351,7 @@
 			echo "There were build errors for the build of $REPONAME at $(date), please address them soon."
 			echo "The errors were: $@"
 		)
+	return $?
 }
 
 case $1 in
@@ -365,7 +366,8 @@
 	"check")
 		check;;
 	"test-mail")
-		send_email;;
+		send_email
+		exit $?;;
 	*)
 		echo -e "\033[0;31mInvalid usage\033[0m"
 		echo -e "Usage: $0 init|check|add|remove|build-all"

--
Gitblit v1.10.0