summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorP. J. McDermott <pj@pehjota.net>2015-10-28 12:40:12 (EDT)
committer P. J. McDermott <pj@pehjota.net>2015-10-28 12:40:12 (EDT)
commited4d7b78d105b4f6c1e96189953f89b15f5aaacf (patch)
tree16beb26072236750ec978997027018f2e0fd6870
parent1e522cb56885b8037b0df0e5b318a693f9f8fd86 (diff)
downloadfirman.sh-ed4d7b78d105b4f6c1e96189953f89b15f5aaacf.zip
firman.sh-ed4d7b78d105b4f6c1e96189953f89b15f5aaacf.tar.gz
firman.sh-ed4d7b78d105b4f6c1e96189953f89b15f5aaacf.tar.bz2
dist_*_get_versions(): Use dl()
-rw-r--r--src/dist/libiquity.sh5
-rw-r--r--src/dist/libreboot.sh3
2 files changed, 3 insertions, 5 deletions
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