feat(bash): improve proxmox detection
This commit is contained in:
parent
06e7241a0f
commit
c9efe04b17
|
|
@ -25,6 +25,11 @@ if [[ -d /boot/efi/EFI/proxmox ]]; then
|
||||||
DISTRO='proxmox'
|
DISTRO='proxmox'
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
# Non-UEFI installs... probably makes the above check redundant anyways.
|
||||||
|
if [[ $DISTRO != proxmox && -d /boot/pve ]]; then
|
||||||
|
DISTRO='proxmox'
|
||||||
|
fi
|
||||||
|
|
||||||
case "$DISTRO" in
|
case "$DISTRO" in
|
||||||
proxmox|ubuntu)
|
proxmox|ubuntu)
|
||||||
DISTRO_COLOR='\[\e[38;5;208;3;4m\]'
|
DISTRO_COLOR='\[\e[38;5;208;3;4m\]'
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue