]> xenbits.xensource.com Git - people/sstabellini/xen-unstable.git/.git/commitdiff
tools: ipxe: Correct download error handling
authorIan Jackson <ian.jackson@eu.citrix.com>
Mon, 5 Nov 2018 18:40:49 +0000 (18:40 +0000)
committerIan Jackson <ian.jackson@eu.citrix.com>
Tue, 6 Nov 2018 12:15:05 +0000 (12:15 +0000)
This shell fragment lacked set -e.  So, eg if the download failed a
broken ipxe.tar.gz would be left behind.

Signed-off-by: Ian Jackson <ian.jackson@eu.citrix.com>
Reviewed-by: Paul Durrant <paul.durrant@citrix.com>
Tested-by: Paul Durrant <paul.durrant@citrix.com>
Acked-by: Wei Liu <wei.liu2@citrix.com>
tools/firmware/etherboot/Makefile

index 3868f876ea3bba62b07b3477d06937df5fa37790..fd8dfdf5a78421f7cfe9da8c12f71e744a5e9686 100644 (file)
@@ -33,7 +33,7 @@ $(ROM): $(ROMS)
        $(MAKE) -C $D/src bin/$(*F).rom
 
 $T:
-       if ! $(FETCHER) _$T $(IPXE_TARBALL_URL); then \
+       set -e; if ! $(FETCHER) _$T $(IPXE_TARBALL_URL); then \
                $(GIT) clone $(IPXE_GIT_URL) $D.git; \
                (cd $D.git && $(GIT) archive --format=tar --prefix=$D/ \
                $(IPXE_GIT_TAG) | gzip -n >../_$T); \