mirror of
https://dev.iopsys.eu/feed/iopsys.git
synced 2025-12-10 07:44:50 +01:00
iop: genconfig: return 1 on failure
Handle failures correctly so that CI for example will terminate. Change-Id: I676de24a797405966ae554f9f7dad186ada14e8a
This commit is contained in:
parent
eab01d27dd
commit
93656b57db
2 changed files with 2 additions and 2 deletions
|
|
@ -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
|
||||||
|
|
|
||||||
|
|
@ -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
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue