1
0
mirror of https://github.com/rancher/os.git synced 2025-09-14 06:00:06 +00:00

Replace curl with wget in Makefile

Because curl exits cleanly on HTTP errors (like 404 Not Found) and output filled with the error page content
This commit is contained in:
Ivan Mikushin
2016-03-22 16:27:11 -07:00
parent 2ec32c14e2
commit 77506c0a67

View File

@@ -23,12 +23,12 @@ endif
assets/docker:
mkdir -p $(dir $@)
curl -L "$(DOCKER_BINARY_URL)" > $@
wget -O - "$(DOCKER_BINARY_URL)" > $@
chmod +x $@
assets/selinux/policy.29:
mkdir -p $(dir $@)
curl -L "$(SELINUX_POLICY_URL)" > $@
wget -O - "$(SELINUX_POLICY_URL)" > $@
ifdef COMPILED_KERNEL_URL
@@ -42,7 +42,7 @@ dist/artifacts/vmlinuz: build/kernel/
build/kernel/:
mkdir -p $@
curl -L "$(COMPILED_KERNEL_URL)" | tar -xzf - -C $@
wget -O - "$(COMPILED_KERNEL_URL)" | tar -xzf - -C $@
dist/artifacts/initrd: bin/ros assets/docker assets/selinux/policy.29 build/kernel/ build/images.tar