From ed4d7b78d105b4f6c1e96189953f89b15f5aaacf Mon Sep 17 00:00:00 2001 From: P. J. McDermott Date: Wed, 28 Oct 2015 12:40:12 -0400 Subject: dist_*_get_versions(): Use dl() --- (limited to 'src/dist') diff --git a/src/dist/libiquity.sh b/src/dist/libiquity.sh index dfd774d..05d004a 100644 --- a/src/dist/libiquity.sh +++ b/src/dist/libiquity.sh @@ -35,7 +35,6 @@ dist_libiquity_get_versions() local mirror="${1}" local board="${2}" shift 2 - local dl="${WGET} -q -O -" local version= local versions='' @@ -57,12 +56,12 @@ dist_libiquity_get_versions() archive="${archive}_grub_${board}.tar.xz" ;; esac - if ${dl} "${mirror}/${version}/${sums}" | \ + if dl "${mirror}/${version}/${sums}" | \ grep -F " ${archive}" >/dev/null 2>&1; then versions="${versions} ${version}" fi done <<-EOF - $(${dl} "${mirror}/Manifest") + $(dl "${mirror}/Manifest") EOF printf '%s ' ${versions} diff --git a/src/dist/libreboot.sh b/src/dist/libreboot.sh index 4d611e9..46f99f9 100644 --- a/src/dist/libreboot.sh +++ b/src/dist/libreboot.sh @@ -49,7 +49,6 @@ dist_libreboot_get_versions() local mirror="${1}" local board="${2}" shift 2 - local dl="${WGET} -q -O -" local version= local versions='' @@ -71,7 +70,7 @@ dist_libreboot_get_versions() archive="${archive}_grub_${board}.tar.xz" ;; esac - if ${dl} "${mirror}/${version}/${sums}" | \ + if dl "${mirror}/${version}/${sums}" | \ grep -F " ${archive}" >/dev/null 2>&1; then versions="${versions} ${version}" fi -- cgit v0.9.1