mirror of
https://github.com/angristan/wireguard-install.git
synced 2025-02-22 23:23:25 +03:00
Fix indentation
This commit is contained in:
parent
164b35c7c5
commit
44ff473cfd
@ -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
|
||||||
|
Loading…
x
Reference in New Issue
Block a user