mirror of
https://github.com/angristan/wireguard-install.git
synced 2024-11-23 21:46:02 +03:00
Fix unnecessary reinstall of packages (#172)
This commit is contained in:
parent
88ae1c0d0f
commit
21b5e56eea
@ -147,11 +147,11 @@ function installWireGuard() {
|
||||
# Check if current running kernel is LTS
|
||||
ARCH_KERNEL_RELEASE=$(uname -r)
|
||||
if [[ ${ARCH_KERNEL_RELEASE} == *lts* ]]; then
|
||||
pacman -S --noconfirm linux-lts-headers
|
||||
pacman -S --needed --noconfirm linux-lts-headers
|
||||
else
|
||||
pacman -S --noconfirm linux-headers
|
||||
pacman -S --needed --noconfirm linux-headers
|
||||
fi
|
||||
pacman -S --noconfirm wireguard-tools iptables qrencode
|
||||
pacman -S --needed --noconfirm wireguard-tools iptables qrencode
|
||||
fi
|
||||
|
||||
# Make sure the directory exists (this does not seem the be the case on fedora)
|
||||
|
Loading…
Reference in New Issue
Block a user