mirror of
https://github.com/angristan/wireguard-install.git
synced 2024-11-22 04:35:09 +00: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
|
# Check if current running kernel is LTS
|
||||||
ARCH_KERNEL_RELEASE=$(uname -r)
|
ARCH_KERNEL_RELEASE=$(uname -r)
|
||||||
if [[ ${ARCH_KERNEL_RELEASE} == *lts* ]]; then
|
if [[ ${ARCH_KERNEL_RELEASE} == *lts* ]]; then
|
||||||
pacman -S --noconfirm linux-lts-headers
|
pacman -S --needed --noconfirm linux-lts-headers
|
||||||
else
|
else
|
||||||
pacman -S --noconfirm linux-headers
|
pacman -S --needed --noconfirm linux-headers
|
||||||
fi
|
fi
|
||||||
pacman -S --noconfirm wireguard-tools iptables qrencode
|
pacman -S --needed --noconfirm wireguard-tools iptables qrencode
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# Make sure the directory exists (this does not seem the be the case on fedora)
|
# Make sure the directory exists (this does not seem the be the case on fedora)
|
||||||
|
Loading…
Reference in New Issue
Block a user