Browse Source

Merge pull request #456 from alinalexandru/fix/deb-parameters-count

fix: number of parameters to accept the optional parameters
automatic_bootstrap_artifact
Kristian Amlie 3 years ago
committed by GitHub
parent
commit
c3f43621bd
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
  1. 6
      modules/deb.sh

6
modules/deb.sh

@ -29,7 +29,7 @@ source modules/probe.sh .
#
function deb_from_repo_dist_get() {
if [[ $# -lt 5 || $# -gt 7 ]]; then
log_fatal "deb_from_repo_dist_get() requires 5 arguments"
log_fatal "deb_from_repo_dist_get() requires 5 arguments. 6th is optional"
fi
local -r download_dir="${1}"
local -r repo_url="${2}"
@ -68,8 +68,8 @@ function deb_from_repo_dist_get() {
# @return - Filename of the downloaded package
#
function deb_from_repo_pool_get() {
if [[ $# -ne 5 ]]; then
log_fatal "deb_from_repo_pool_get() requires 5 arguments"
if [[ $# -lt 5 || $# -gt 7 ]]; then
log_fatal "deb_from_repo_pool_get() requires 5 arguments. 6th is optional"
fi
local -r download_dir="${1}"
local -r repo_url="${2}"

Loading…
Cancel
Save