Skip to content

Commit

Permalink
Fix indentation
Browse files Browse the repository at this point in the history
  • Loading branch information
angristan committed Jan 26, 2025
1 parent 164b35c commit 44ff473
Showing 1 changed file with 12 additions and 12 deletions.
24 changes: 12 additions & 12 deletions wireguard-install.sh
Original file line number Diff line number Diff line change
Expand Up @@ -30,18 +30,18 @@ function checkVirt() {
}
if command -v virt-what &>/dev/null; then
if [ "$(virt-what)" == "openvz" ]; then
openvzErr
fi
if [ "$(virt-what)" == "lxc" ]; then
lxcErr
fi
openvzErr
fi
if [ "$(virt-what)" == "lxc" ]; then
lxcErr
fi
else
if [ "$(systemd-detect-virt)" == "openvz" ]; then
openvzErr
fi
if [ "$(systemd-detect-virt)" == "lxc" ]; then
lxcErr
fi
openvzErr
fi
if [ "$(systemd-detect-virt)" == "lxc" ]; then
lxcErr
fi
fi
}

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

0 comments on commit 44ff473

Please sign in to comment.