Give an initial value to pkg_list.

This commit is contained in:
David Tomaschik
2018-01-06 14:29:03 -08:00
parent 0c38ad65f7
commit 05a3905eb0

View File

@@ -203,7 +203,7 @@ function run_as_root {
function install_pkg_set { function install_pkg_set {
local pkg_file=${BASEDIR}/${1} local pkg_file=${BASEDIR}/${1}
local pkg_list local pkg_list=""
if [[ ! -f ${pkg_file} ]] ; then return 0 ; fi if [[ ! -f ${pkg_file} ]] ; then return 0 ; fi
cat ${pkg_file} | while read line ; do cat ${pkg_file} | while read line ; do
if [[ ${line:0:1} == '#' ]] ; then if [[ ${line:0:1} == '#' ]] ; then