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 \ apk add --no-cache \
curl \ curl \
jq jq
elif [ -f /usr/bin/dnf ]; then elif [[ -f /usr/bin/dnf ]]; then
# Fedora # Fedora
dnf install -y --setopt=install_weak_deps=False --best \ dnf install -y --setopt=install_weak_deps=False --best \
curl \ curl \
jq jq
elif [ -f /usr/sbin/pacman ]; then elif [[ -f /usr/sbin/pacman ]]; then
# Arch # Arch
pacman -Sy --noconfirm \ pacman -Sy --noconfirm \
curl \ curl \