From b58fbfb19753f4cd254e36f1d48eb95f0ad9bf3a Mon Sep 17 00:00:00 2001 From: Patrick McDermott Date: Thu, 25 Apr 2019 18:32:11 -0400 Subject: src/install.sh: Shift func args, update copyright --- (limited to 'src/install.sh') diff --git a/src/install.sh b/src/install.sh index ca1afaf..74d8101 100644 --- a/src/install.sh +++ b/src/install.sh @@ -1,6 +1,6 @@ # Functions for installing systems # -# Copyright (C) 2013-2015 Patrick "P. J." McDermott +# Copyright (C) 2013-2015 Patrick McDermott # # This file is part of the ProteanOS Development Kit. # @@ -32,6 +32,7 @@ install_system() local plat="${4}" local root="${5}" local foreign="${6}" + shift 6 if [ "x${arch}" = 'x' ]; then arch="$(profile_detect_arch)" @@ -88,6 +89,7 @@ install_system() _usign_fingerprint() { local key_data="${1}" + shift 1 local usign= if ${in_place} && ${USIGN_EMBEDDED}; then @@ -113,6 +115,7 @@ install_find_pkgs() local arch="${3}" local plat="${4}" local root="${5}" + shift 5 local opkg_conf_fd= local pkgs_fd= local type= @@ -206,6 +209,7 @@ install_deps_cb() { local pkg="${1}" local deps="${2}" + shift 2 install_deps="${install_deps}${pkg}: ${deps}${LF}" @@ -216,6 +220,7 @@ install_fname_cb() { local pkg="${1}" local fname="${2}" + shift 2 install_urls="$(printf '%s\n%s %s/%s' "${install_urls}" \ "${pkg}" "${install_feed_url}" "${fname}")" @@ -227,6 +232,7 @@ install_md5sum_cb() { local pkg="${1}" local md5sum="${2}" + shift 2 install_md5sums="$(printf '%s\n%s %s' "${install_md5sums}" \ "${pkg}" "${md5sum}")" @@ -238,6 +244,7 @@ install_sha256sum_cb() { local pkg="${1}" local sha256sum="${2}" + shift 2 install_sha256sums="$(printf '%s\n%s %s' \ "${install_sha256sums}" "${pkg}" "${sha256sum}")" @@ -248,6 +255,7 @@ install_sha256sum_cb() install_get_pkgs() { local root="${1}" + shift 1 local status_fd= local errors= local pkg= -- cgit v0.9.1