mirror of
https://github.com/Matir/skel.git
synced 2026-05-26 05:29:09 -07:00
Really fix package installation.
This commit is contained in:
@@ -237,10 +237,10 @@ install_pkg_set() {
|
|||||||
if [ -z "${line}" ] ; then
|
if [ -z "${line}" ] ; then
|
||||||
continue
|
continue
|
||||||
fi
|
fi
|
||||||
if apt-cache show ${line} | grep -q 'No packages found' >/dev/null 2>&1 ; then
|
if [ "$(apt-cache -q show ${line} 2>/dev/null)" != "" ] ; then
|
||||||
echo "Warning: package ${line} not found." >&2
|
|
||||||
else
|
|
||||||
pkg_list="${pkg_list} ${line}"
|
pkg_list="${pkg_list} ${line}"
|
||||||
|
else
|
||||||
|
echo "Warning: package ${line} not found." >&2
|
||||||
fi
|
fi
|
||||||
done < ${pkg_file}
|
done < ${pkg_file}
|
||||||
if [ -n "${pkg_list}" ] ; then
|
if [ -n "${pkg_list}" ] ; then
|
||||||
|
|||||||
Reference in New Issue
Block a user