Skip to content

Commit af93be7

Browse files
committed
support iOS 1 better
1 parent 30590d0 commit af93be7

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

pfetch

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -379,8 +379,10 @@ get_os() {
379379

380380
# Use the ProductVersion to determine which macOS/OS X codename
381381
# the system has. As far as I'm aware there's no "dynamic" way
382-
# of grabbing this information.
382+
# of grabbing this information. iOS 1 is here because iOS didn't
383+
# internally differatiate itself from OS X before 2.0
383384
case $mac_version in
385+
(1.*) distro="iOS $mac_version" ;;
384386
(10.4*) distro="Mac OS X $mac_version Tiger" ;;
385387
(10.5*) distro="Mac OS X $mac_version Leopard" ;;
386388
(10.6*) distro="Mac OS X $mac_version Snow Leopard" ;;

0 commit comments

Comments
 (0)