Temp debug

This commit is contained in:
2022-12-20 12:21:55 -05:00
parent c7bd17778e
commit 1634caf8aa

View File

@@ -402,11 +402,11 @@ installPackage() {
debug "Running: ${FUNCNAME[0]}" "$@" debug "Running: ${FUNCNAME[0]}" "$@"
declare -a pkg_array install_flags declare -a pkg_array install_flags
declare pkg skip_check_installed silent pkg_install_cmd refresh allow_downgrades no_gpg_check declare input pkg skip_check_installed silent pkg_install_cmd refresh allow_downgrades no_gpg_check
declare -A pkg_aliases declare -A pkg_aliases
if _input=$(getopt -o +s -l skip-check-installed,allow-downgrades,no-gpg-check,refresh,silent -- "$@"); then if input=$(getopt -o +s -l skip-check-installed,allow-downgrades,no-gpg-check,refresh,silent -- "$@"); then
eval set -- "$_input" eval set -- "$input"
while true; do while true; do
case "$1" in case "$1" in
--skip-check-installed) --skip-check-installed)
@@ -474,10 +474,9 @@ installPackage() {
;; ;;
esac esac
debug "HERE"
# Install packages from package array # Install packages from package array
if [[ ${#pkg_array[@]} -ge 1 ]]; then if [[ ${#pkg_array[@]} -ge 1 ]]; then
echo HERE
pkg_install_cmd="pkg_install ${install_flags[*]} ${pkg_array[*]}" pkg_install_cmd="pkg_install ${install_flags[*]} ${pkg_array[*]}"
debug "$pkg_install_cmd" || pkg_install_cmd+=" &>/dev/null" debug "$pkg_install_cmd" || pkg_install_cmd+=" &>/dev/null"
if ! eval "$pkg_install_cmd"; then if ! eval "$pkg_install_cmd"; then