Skip to content
Snippets Groups Projects

Draft: fix(arch-nspawn): clean all existing makepkg conf.d files before overriding

Open Levente Polyak requested to merge fix/clean-makepkg.conf.d into master
1 file
+ 3
0
Compare changes
  • Side-by-side
  • Inline
+ 3
0
@@ -116,6 +116,9 @@ copy_hostconf () {
cp "$makepkg_conf" "$working_dir/etc/makepkg.conf"
if [[ -d "${makepkg_conf}.d" ]] && is_globfile "${makepkg_conf}.d"/*.conf; then
mkdir --parents "$working_dir/etc/makepkg.conf.d/"
if is_globfile "$working_dir/etc/makepkg.conf.d"/*.conf; then
rm --force "$working_dir/etc/makepkg.conf.d"/*.conf
fi
cp "${makepkg_conf}.d/"*.conf "$working_dir/etc/makepkg.conf.d/"
fi
fi
Loading