From 5f918314e1c1b2d7e03ea4180ba216b43878f2e7 Mon Sep 17 00:00:00 2001 From: Robert Nelson <robertcnelson@gmail.com> Date: Tue, 10 Jun 2014 19:20:13 -0500 Subject: [PATCH] chroot: obvious reverse logic Signed-off-by: Robert Nelson <robertcnelson@gmail.com> --- scripts/chroot.sh | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/scripts/chroot.sh b/scripts/chroot.sh index 8f20cb6e9..2466bff37 100755 --- a/scripts/chroot.sh +++ b/scripts/chroot.sh @@ -107,14 +107,13 @@ check_defines () { fi fi - if [ ! "x${deb_additional_pkgs}" = "x" ] ; then + if [ "x${deb_additional_pkgs}" = "x" ] ; then ##Backwards compat pre configs - if [ "x${base_pkg_list}" = "x" ] ; then + if [ ! "x${base_pkg_list}" = "x" ] ; then deb_additional_pkgs="$(echo ${base_pkg_list} | sed 's/,/ /g')" fi else - temp="$(echo ${deb_additional_pkgs} | sed 's/,/ /g')" - deb_additional_pkgs="${temp}" + deb_additional_pkgs="$(echo ${deb_additional_pkgs} | sed 's/,/ /g')" fi } -- GitLab