iop: genconfig: return 1 on failure

Handle failures correctly so that CI for example will terminate.

Change-Id: I676de24a797405966ae554f9f7dad186ada14e8a
This commit is contained in:
Erik Karlsson 2021-05-14 16:38:12 +02:00
parent eab01d27dd
commit 93656b57db
2 changed files with 2 additions and 2 deletions

View file

@ -476,7 +476,7 @@ function genconfig {
if [ ! -e tmp/.iop_bootstrap ]; then if [ ! -e tmp/.iop_bootstrap ]; then
echo "You have not installed feeds. Running genconfig in this state would create a non functional configuration." echo "You have not installed feeds. Running genconfig in this state would create a non functional configuration."
echo "Run: iop feeds_update" echo "Run: iop feeds_update"
exit 0 exit 1
fi fi
if [ $# -eq 0 ]; then if [ $# -eq 0 ]; then

View file

@ -444,7 +444,7 @@ function genconfig_min {
if [ ! -e tmp/.iop_bootstrap ]; then if [ ! -e tmp/.iop_bootstrap ]; then
echo "You have not installed feeds. Running genconfig in this state would create a non functional configuration." echo "You have not installed feeds. Running genconfig in this state would create a non functional configuration."
echo "Run: iop feeds_update" echo "Run: iop feeds_update"
exit 0 exit 1
fi fi
if [ $# -eq 0 ]; then if [ $# -eq 0 ]; then