Fix unnecessary reinstall of packages (#172)

This commit is contained in:
Patrick M 2021-01-02 00:41:13 +01:00 committed by GitHub
parent 88ae1c0d0f
commit 21b5e56eea
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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)