small fixes

This commit is contained in:
teldra 2021-03-16 23:51:23 +01:00
parent dadaf8d9d4
commit ece3ecb54a
1 changed files with 2 additions and 2 deletions

View File

@ -1,8 +1,8 @@
module start "preinstallation" "Preinstallation"
if [[ "${#ignorepkg[@]}" -gt 0 ]]; then
mkdir -p /etc/xbps.d/
touch /etc/xbps.d/10-ignore-pkg.conf
mkdir -p "${dest}"/etc/xbps.d/
touch "${dest}"/etc/xbps.d/10-ignore-pkg.conf
for ig in "${ignorepkg[@]}"; do
if ! grep -q "${ig}" "${dest}"/etc/xbps.d/10-ignore-pkg.conf; then
echo "ignorepkg=${ig}" >> "${dest}"/etc/xbps.d/10-ignore-pkg.conf