Skip to content

Commit 45052bd

Browse files
committed
[fix] : Fixed arch_kay.
1 parent f618b1b commit 45052bd

1 file changed

Lines changed: 2 additions & 11 deletions

File tree

keyring.sh

Lines changed: 2 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -148,15 +148,6 @@ checkpkg() {
148148
}
149149

150150

151-
_pacman_install() {
152-
for i in ${@}; do
153-
if [[ $(checkpkg "${i}") = false ]]; then
154-
pacman -S --noconfirm "${i}"
155-
fi
156-
done
157-
}
158-
159-
160151
run() {
161152
msg_info "Running ${@}"
162153
${@}
@@ -185,10 +176,10 @@ prepare() {
185176

186177

187178
update_arch_key() {
179+
pacman-key --refresh-keys
188180
pacman-key --init
189181
pacman-key --populate archlinux
190-
_pacman_install core/archlinux-keyring
191-
pacman-key --refresh-keys
182+
pacman -S --noconfirm core/archlinux-keyring
192183
pacman -Sy
193184
}
194185

0 commit comments

Comments
 (0)