Skip to content

Commit

Permalink
Adds an error message when curl is missing.
Browse files Browse the repository at this point in the history
  • Loading branch information
travisgoodspeed committed Jun 19, 2018
1 parent e1bce34 commit 4e123d4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion firmware/Makefile_orig
Expand Up @@ -57,7 +57,7 @@ $(BINDIR)/%.bin: $(DLDIR)/%.bin | $(BINDIR)
@test $$(shasum -a 256 $@ | awk '{print $$1}') "=" $(FIRMWARE_SHA256) || (rm -f $@ && echo "$@: SHA256 mismatch" && false)

$(DLDIR)/%: | $(DLDIR)
@which curl >>/dev/null #Check that we have curl.
@which curl >>/dev/null || (echo "ERROR: Curl is missing. Please install it." && false) #Check that we have curl.
@-echo $(FIRMWARE_URL) \=\> $@
@curl $(CURL_FLAGS) $(FIRMWARE_URL) -o $@
@test $$(find $@ -size +0c) || (rm -f $@ && echo "FATAL ERROR: $@ downloaded as a zero byte file" && false)

0 comments on commit 4e123d4

Please sign in to comment.