From ba88581ed43497b6ce2583ee13c1e961b8eae4d8 Mon Sep 17 00:00:00 2001 From: Un1q32 Date: Mon, 13 Oct 2025 03:24:39 -0400 Subject: [PATCH] Support iOS 1.x (#444) * support iOS 1.x * add comment * reword and fix typo --- neofetch | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/neofetch b/neofetch index 6a0db2b2..937d8460 100755 --- a/neofetch +++ b/neofetch @@ -6396,6 +6396,11 @@ cache_uname() { ProductVersion) osx_version=${sw_vers[i+1]} ;; ProductBuildVersion) osx_build=${sw_vers[i+1]} ;; esac + # before iOS 2, iOS didn't internally distinguish between itself and macOS, + # so we manually set the OS type if the version is 1.x + case $osx_version in + 1.*) darwin_name="iPhone OS" ;; + esac } fi }