Fix indentation

This commit is contained in:
Stanislas Lange 2025-01-27 00:31:28 +01:00
parent 164b35c7c5
commit 44ff473cfd
No known key found for this signature in database

View File

@ -30,18 +30,18 @@ function checkVirt() {
} }
if command -v virt-what &>/dev/null; then if command -v virt-what &>/dev/null; then
if [ "$(virt-what)" == "openvz" ]; then if [ "$(virt-what)" == "openvz" ]; then
openvzErr openvzErr
fi fi
if [ "$(virt-what)" == "lxc" ]; then if [ "$(virt-what)" == "lxc" ]; then
lxcErr lxcErr
fi fi
else else
if [ "$(systemd-detect-virt)" == "openvz" ]; then if [ "$(systemd-detect-virt)" == "openvz" ]; then
openvzErr openvzErr
fi fi
if [ "$(systemd-detect-virt)" == "lxc" ]; then if [ "$(systemd-detect-virt)" == "lxc" ]; then
lxcErr lxcErr
fi fi
fi fi
} }
@ -78,8 +78,8 @@ function checkOS() {
elif [[ -e /etc/alpine-release ]]; then elif [[ -e /etc/alpine-release ]]; then
OS=alpine OS=alpine
if ! command -v virt-what &>/dev/null; then if ! command -v virt-what &>/dev/null; then
apk update && apk add virt-what apk update && apk add virt-what
fi fi
else else
echo "Looks like you aren't running this installer on a Debian, Ubuntu, Fedora, CentOS, AlmaLinux, Oracle or Arch Linux system" echo "Looks like you aren't running this installer on a Debian, Ubuntu, Fedora, CentOS, AlmaLinux, Oracle or Arch Linux system"
exit 1 exit 1