OSDN Git Service

[fix] : remove scripts before run
authorhayao <shun819.mail@gmail.com>
Sat, 22 Aug 2020 06:12:29 +0000 (15:12 +0900)
committerhayao <shun819.mail@gmail.com>
Sat, 22 Aug 2020 06:12:29 +0000 (15:12 +0900)
build.sh

index b8cb0da..ca47728 100755 (executable)
--- a/build.sh
+++ b/build.sh
@@ -941,11 +941,11 @@ make_packages_aur() {
         unshare --fork --pid pacman -r "${work_dir}/${arch}/airootfs" -R --noconfirm ${_dlpkg}
     done
 
-    # Remove scripts
-    remove "${work_dir}/${arch}/airootfs/root/"{"aur_install","aur_prepare","aur_remove","pacls_gen_new","pacls_gen_old"}".sh"
-
     # Remove the user created for the build.
     ${mkalteriso} ${mkalteriso_option} -w "${work_dir}/${arch}"  -D "${install_dir}" -r "/root/aur_remove.sh" run
+
+    # Remove scripts
+    remove "${work_dir}/${arch}/airootfs/root/"{"aur_install","aur_prepare","aur_remove","pacls_gen_new","pacls_gen_old"}".sh"
 }
 
 # Customize installation (airootfs)