OSDN Git Service

[fix] : pacman-key --populate
authorhayao <shun819.mail@gmail.com>
Sun, 15 Nov 2020 06:55:51 +0000 (15:55 +0900)
committerhayao <shun819.mail@gmail.com>
Sun, 15 Nov 2020 06:55:51 +0000 (15:55 +0900)
system/aur.sh

index b3f73cb..2c612e1 100755 (executable)
@@ -47,7 +47,8 @@ echo "aurbuild ALL=(ALL) NOPASSWD:ALL" > "/etc/sudoers.d/aurbuild"
 
 # Setup keyring
 pacman-key --init
-eval $(cat "/etc/systemd/system/pacman-init.service" | grep 'ExecStart' | sed "s|ExecStart=||g" )
+#eval $(cat "/etc/systemd/system/pacman-init.service" | grep 'ExecStart' | sed "s|ExecStart=||g" )
+ls "/usr/share/pacman/keyrings/"*".gpg" | sed "s|.gpg||g" | xargs | pacman-key --populate
 
 
 # Build and install