makelni: exit if lon-tool fails

This commit is contained in:
timoxa0 2024-11-02 22:31:25 +05:00
parent 1799df1479
commit 33f25c2762

View file

@ -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"