diff --git a/testing/ejabberd/APKBUILD b/testing/ejabberd/APKBUILD
index 7be6cfee89e331214ff6da46ba3fe9143a9c5c44..186ba8d873e8f675ad4f6c279c3e8f0befba4e8b 100644
--- a/testing/ejabberd/APKBUILD
+++ b/testing/ejabberd/APKBUILD
@@ -41,7 +41,7 @@ prepare() {
 
 build() {
 	cd "$builddir"
-	./autogen.sh | return 1
+	./autogen.sh || return 1
 	./configure --prefix=/usr \
 		--sysconfdir=/etc \
 		--localstatedir=/var \