aboutsummaryrefslogtreecommitdiffstats
path: root/packageinstall.sh
diff options
context:
space:
mode:
Diffstat (limited to 'packageinstall.sh')
-rw-r--r--packageinstall.sh4
1 files changed, 2 insertions, 2 deletions
diff --git a/packageinstall.sh b/packageinstall.sh
index e0516db..5c3afe8 100644
--- a/packageinstall.sh
+++ b/packageinstall.sh
@@ -3,7 +3,7 @@
CHAPTER="$1"
PACKAGE="$2"
-if ! grep -q "^${PACKAGE}," packages.csv; then
+if ! grep -q "^${PACKAGE}," packages*.csv; then
printf "%b" " ${IRED}PACKAGE ${IYLW}${PACKAGE} ${IRED}DOES NOT EXIST!${RST}\n"
exit 1
fi
@@ -12,7 +12,7 @@ if [[ -f "${LFS}/sources/chapter${CHAPTER}/${PACKAGE}" ]]; then
printf "%b" "${GRN}Package ${YLW}${PACKAGE} ${GRN}already built and installed${RST}\n"
else
- grep -i "^${PACKAGE}," packages.csv | grep -i -v "\.patch;" | while read -r line; do
+ grep -i "^${PACKAGE}," packages*.csv | grep -i -v "\.patch;" | while read -r line; do
VERSION="$(echo "${line}" | cut -d\, -f2)"
URL="$(echo "${line}" | cut -d\, -f3 | sed "s/@/${VERSION}/g")"
CACHEFILE="$(basename "${URL}")"