fix: Correct hostname check (Thanks szescxz)

This commit is contained in:
Kyle Gospodnetich 2023-10-16 23:54:06 -07:00
parent 4092a1584d
commit 9368037631

View File

@ -194,7 +194,7 @@ fi
# If the hostname is too long Distrobox will fail during setup
# Additonally, Anaconda likes to set the hostname to be the ipv6 address
# Let's check the length and reset it to something sensible if that happens.
if hostname | wc -m > 15; then
if (( $(hostname | wc -m) > 16 )); then
hostnamectl set-hostname bazzite
fi