don't gzip unless we have a valid tar file

This commit is contained in:
Lance Vick 2024-02-05 01:45:45 -08:00
parent 77452b3995
commit cf04bfc6e6
Signed by: lrvick
GPG Key ID: 8E47A1EC35A1551D
1 changed files with 2 additions and 0 deletions

View File

@ -43,7 +43,9 @@ define build
--target $(TARGET) \
$(EXTRA_ARGS) \
$(NOCACHE_FLAG) \
-f src/$(CATEGORY)/$(NAME)/Containerfile \
src/$(CATEGORY)/$(NAME) \
&& tar -tf $(basename $@).tar \
&& gzip < $(basename $@).tar > $@ \
&& rm $(basename $@).tar \
&& gunzip -c $@ | docker load; \