From 93656b57db2e7c9d46baf17a6a16e61e0cf752ba Mon Sep 17 00:00:00 2001 From: Erik Karlsson Date: Fri, 14 May 2021 16:38:12 +0200 Subject: [PATCH] iop: genconfig: return 1 on failure Handle failures correctly so that CI for example will terminate. Change-Id: I676de24a797405966ae554f9f7dad186ada14e8a --- iop/scripts/genconfig.sh | 2 +- iop/scripts/genconfig_min.sh | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/iop/scripts/genconfig.sh b/iop/scripts/genconfig.sh index 2e1207c1e..72b5715b9 100755 --- a/iop/scripts/genconfig.sh +++ b/iop/scripts/genconfig.sh @@ -476,7 +476,7 @@ function genconfig { if [ ! -e tmp/.iop_bootstrap ]; then echo "You have not installed feeds. Running genconfig in this state would create a non functional configuration." echo "Run: iop feeds_update" - exit 0 + exit 1 fi if [ $# -eq 0 ]; then diff --git a/iop/scripts/genconfig_min.sh b/iop/scripts/genconfig_min.sh index 805cf2cab..f7704df99 100644 --- a/iop/scripts/genconfig_min.sh +++ b/iop/scripts/genconfig_min.sh @@ -444,7 +444,7 @@ function genconfig_min { if [ ! -e tmp/.iop_bootstrap ]; then echo "You have not installed feeds. Running genconfig in this state would create a non functional configuration." echo "Run: iop feeds_update" - exit 0 + exit 1 fi if [ $# -eq 0 ]; then