From 1807e40dd3666564851b2b0d855513bd004a927d Mon Sep 17 00:00:00 2001 From: Daniel Baumann Date: Mon, 24 Jun 2013 15:06:53 +0200 Subject: Avoid failing on package lists fails that have no newline at the end. --- functions/packagelists.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/functions/packagelists.sh b/functions/packagelists.sh index d5a2a8c6d..deee6ddb4 100755 --- a/functions/packagelists.sh +++ b/functions/packagelists.sh @@ -37,7 +37,7 @@ Expand_packagelist () continue fi - while read _LB_LINE + printf "$(cat ${_LB_LIST_LOCATION})\n" | while read _LB_LINE do case "${_LB_LINE}" in \!*) @@ -115,6 +115,6 @@ Expand_packagelist () ;; esac - done < "${_LB_LIST_LOCATION}" + done done } -- cgit v1.2.3