buildpkg: fix -i array

This commit is contained in:
udeved 2017-02-21 18:31:44 +01:00
parent 59b1be485d
commit 2579dc8ad0

View file

@ -89,7 +89,7 @@ usage() {
echo " -b <branch> Branch [default: ${target_branch}]" echo " -b <branch> Branch [default: ${target_branch}]"
echo ' -r <dir> Chroots directory' echo ' -r <dir> Chroots directory'
echo " [default: ${chroots_pkg}]" echo " [default: ${chroots_pkg}]"
echo ' -i <pkg> Install a package into the working copy of the chroot' echo ' -i <pkgs> Install packages into the working copy of the chroot'
echo ' -c Recreate chroot' echo ' -c Recreate chroot'
echo ' -w Clean up cache and sources' echo ' -w Clean up cache and sources'
echo ' -n Install and run namcap check' echo ' -n Install and run namcap check'
@ -112,7 +112,7 @@ while getopts "${opts}" arg; do
a) target_arch="$OPTARG" ;; a) target_arch="$OPTARG" ;;
b) target_branch="$OPTARG" ;; b) target_branch="$OPTARG" ;;
r) chroots_pkg="$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 ;; c) clean_first=true ;;
w) wipe_clean=true ;; w) wipe_clean=true ;;
n) namcap=true; mkchrootpkg_args+=(-n) ;; n) namcap=true; mkchrootpkg_args+=(-n) ;;