From 65fdbca4a63f446317e87a504cdcd5e4e78045de Mon Sep 17 00:00:00 2001 From: Jason Hiser <jdhiser@gmail.com> Date: Wed, 3 Jul 2019 11:09:24 -0400 Subject: [PATCH] better debug output for get-packs --- get-peasoup-packages.sh | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/get-peasoup-packages.sh b/get-peasoup-packages.sh index e01381425..1a055c134 100755 --- a/get-peasoup-packages.sh +++ b/get-peasoup-packages.sh @@ -74,18 +74,22 @@ install_packs() which apt-get 1> /dev/null 2> /dev/null if [[ $? == 0 ]]; then if [[ $i =~ apt-* ]]; then + echo "Will install of $i for platform $(lsb_release -d -s)" apters="$apters $(echo $i|sed "s/^apt-//")" elif [[ $i =~ yum-* ]]; then echo "Skipping install of $i for platform $(lsb_release -d -s)" else + echo "Will install of $i for platform $(lsb_release -d -s)" apters="$apters $i" fi else if [[ $i =~ apt-* ]]; then echo "Skipping install of $i for platform $(cat /etc/redhat-release)" elif [[ $i =~ yum-* ]]; then + echo "Skipping install of $i for platform $(cat /etc/redhat-release)" yummers="$yummers $(echo $i|sed "s/^yum-//")" else + echo "Skipping install of $i for platform $(cat /etc/redhat-release)" yummers="$yummers $i" fi fi @@ -93,9 +97,9 @@ install_packs() which apt-get 1> /dev/null 2> /dev/null if [[ $? == 0 ]]; then cmd="sudo apt-get install -y --ignore-missing $apters" - sudo apt-get install -y --ignore-missing $apters + (set -x ; sudo apt-get install -y --ignore-missing $apters) else - sudo yum install -y --skip-broken $yummers + (set -x ; sudo yum install -y --skip-broken $yummers) fi } -- GitLab