From 2579dc8ad0d04cf78046c5a2ea093a85105f868b Mon Sep 17 00:00:00 2001 From: udeved Date: Tue, 21 Feb 2017 18:31:44 +0100 Subject: [PATCH] buildpkg: fix -i array --- bin/buildpkg.in | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/bin/buildpkg.in b/bin/buildpkg.in index 8e2becc..13fd3cd 100644 --- a/bin/buildpkg.in +++ b/bin/buildpkg.in @@ -89,7 +89,7 @@ usage() { echo " -b Branch [default: ${target_branch}]" echo ' -r Chroots directory' echo " [default: ${chroots_pkg}]" - echo ' -i Install a package into the working copy of the chroot' + echo ' -i Install packages into the working copy of the chroot' echo ' -c Recreate chroot' echo ' -w Clean up cache and sources' echo ' -n Install and run namcap check' @@ -112,7 +112,7 @@ while getopts "${opts}" arg; do a) target_arch="$OPTARG" ;; b) target_branch="$OPTARG" ;; r) chroots_pkg="$OPTARG" ;; - i) install_pkgs+="$OPTARG"; mkchrootpkg_args+=(-I ${install_pkgs[*]}) ;; + i) install_pkgs+=("$OPTARG"); mkchrootpkg_args+=(-I ${install_pkgs[*]}) ;; c) clean_first=true ;; w) wipe_clean=true ;; n) namcap=true; mkchrootpkg_args+=(-n) ;;