diff options
-rwxr-xr-x | miniprokit.sh | 11 |
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#../../../../../../}" |