From 55064a548daa466e2f89e4a018c616fe3a67bc27 Mon Sep 17 00:00:00 2001 From: David Tomaschik Date: Thu, 26 Sep 2019 22:49:54 -0700 Subject: [PATCH] Really fix package installation. --- install.sh | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/install.sh b/install.sh index d6f2555..29d93e8 100755 --- a/install.sh +++ b/install.sh @@ -237,10 +237,10 @@ install_pkg_set() { if [ -z "${line}" ] ; then continue fi - if apt-cache show ${line} | grep -q 'No packages found' >/dev/null 2>&1 ; then - echo "Warning: package ${line} not found." >&2 - else + if [ "$(apt-cache -q show ${line} 2>/dev/null)" != "" ] ; then pkg_list="${pkg_list} ${line}" + else + echo "Warning: package ${line} not found." >&2 fi done < ${pkg_file} if [ -n "${pkg_list}" ] ; then