Make ifs consistent for arch/fedora

This commit is contained in:
TheSpad
2022-09-25 19:10:17 +01:00
parent 73a8f07c68
commit 97e3a07010
+2 -2
View File
@@ -163,12 +163,12 @@ curl_check() {
apk add --no-cache \
curl \
jq
elif [ -f /usr/bin/dnf ]; then
elif [[ -f /usr/bin/dnf ]]; then
# Fedora
dnf install -y --setopt=install_weak_deps=False --best \
curl \
jq
elif [ -f /usr/sbin/pacman ]; then
elif [[ -f /usr/sbin/pacman ]]; then
# Arch
pacman -Sy --noconfirm \
curl \