From 9368037631bc1ec5de337abe0ca3f59436f79f3a Mon Sep 17 00:00:00 2001 From: Kyle Gospodnetich Date: Mon, 16 Oct 2023 23:54:06 -0700 Subject: [PATCH] fix: Correct hostname check (Thanks szescxz) --- system_files/desktop/shared/usr/bin/bazzite-hardware-setup | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/system_files/desktop/shared/usr/bin/bazzite-hardware-setup b/system_files/desktop/shared/usr/bin/bazzite-hardware-setup index a2151bf6..0f2b2f16 100755 --- a/system_files/desktop/shared/usr/bin/bazzite-hardware-setup +++ b/system_files/desktop/shared/usr/bin/bazzite-hardware-setup @@ -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