Support curl as an alternative to wget.
Signed-off-by: Tomáš Golembiovský <tgolembi@redhat.com>
fi
@if wget --help >/dev/null 2>&1; then \
echo 'DOWNLOAD=wget -O -' >> $@-t; \
+ elif curl --help >/dev/null 2>&1; then \
+ echo 'DOWNLOAD=curl -L' >> $@-t; \
else \
- echo -n "‘wget’ not installed or not working."; \
- echo "Install the ‘wget’ package."; \
+ echo -n "‘wget’ nor ‘curl’ is installed and working."; \
+ echo "Install the ‘wget’ or ‘curl’ package."; \
exit 1; \
fi
@mv $@-t $@