makelni: exit if lon-tool fails
This commit is contained in:
parent
1799df1479
commit
33f25c2762
2
makelni
2
makelni
|
@ -119,6 +119,6 @@ log "Trimming image"
|
||||||
trim_image "$name" || _shutdown 1
|
trim_image "$name" || _shutdown 1
|
||||||
|
|
||||||
log "Creating lni image"
|
log "Creating lni image"
|
||||||
lon-tool image create "$IMAGE_PATH" "./out/${name}.lni" --name "$name" -v "$imgver"
|
lon-tool image create "$IMAGE_PATH" "./out/${name}.lni" --name "$name" -v "$imgver" || exit $?
|
||||||
|
|
||||||
log "Image build finished"
|
log "Image build finished"
|
||||||
|
|
Loading…
Reference in a new issue