OSDN Git Service

[fix] : Fixed cp command
authorhayao <shun819.mail@gmail.com>
Fri, 18 Dec 2020 08:27:08 +0000 (17:27 +0900)
committerhayao <shun819.mail@gmail.com>
Fri, 18 Dec 2020 08:27:08 +0000 (17:27 +0900)
build.sh

index 58bb74c..6b86d3c 100755 (executable)
--- a/build.sh
+++ b/build.sh
@@ -730,9 +730,9 @@ make_customize_airootfs() {
 
     # Replace /etc/mkinitcpio.conf if Plymouth is enabled.
     if [[ "${boot_splash}" = true ]]; then
-        cp "${script_path}/mkinitcpio/mkinitcpio-plymouth.conf" "${airootfs_dir}/etc/mkinitcpio.conf"
+        cp -f "${script_path}/mkinitcpio/mkinitcpio-plymouth.conf" "${airootfs_dir}/etc/mkinitcpio.conf"
     else
-        cp "${script_path}/mkinitcpio/mkinitcpio.conf" "${airootfs_dir}/etc/mkinitcpio.conf"
+        cp -f "${script_path}/mkinitcpio/mkinitcpio.conf" "${airootfs_dir}/etc/mkinitcpio.conf"
     fi
     
     # customize_airootfs options