summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorP. J. McDermott <pjm@nac.net>2014-03-20 01:49:04 (EDT)
committer P. J. McDermott <pjm@nac.net>2014-03-20 01:49:04 (EDT)
commit9c4bed5c49b39a3798453d1bcdc801f6e4f45fcb (patch)
treeda7d4f8dbdfc0f429345db7555e683f50f0c0e00
parentd5395d3992f0313d3269439c81eb2c7232e567d4 (diff)
miniprokit.sh: Fix missing argument to get_pkg().
-rwxr-xr-xminiprokit.sh11
1 files changed, 6 insertions, 5 deletions
diff --git a/miniprokit.sh b/miniprokit.sh
index e7773ec..769004a 100755
--- a/miniprokit.sh
+++ b/miniprokit.sh
@@ -192,7 +192,7 @@ cmd_install()
elif [ "x${line}" = 'x' ]; then
printf '%s\n' "${PKGS}" | grep -Fq " ${package} " || \
continue
- get_pkg "${mirror}" \
+ get_pkg "${root}" "${mirror}" \
"${package}" "${filename}" "${sha256sum}"
fi
done <<-EOF
@@ -206,10 +206,11 @@ cmd_install()
get_pkg()
{
- local mirror="${1}"
- local package="${2}"
- local filename="${3}"
- local sha256sum="${4}"
+ local root="${1}"
+ local mirror="${2}"
+ local package="${3}"
+ local filename="${4}"
+ local sha256sum="${5}"
info 'Downloading %s...' "${package}"
filename="${filename#../../../../../../}"