Fix iphone model appearing in distro output

This commit is contained in:
Dylan 2016-05-08 10:17:17 +10:00
parent e4a55b8d76
commit e8f9f44091
1 changed files with 2 additions and 1 deletions

View File

@ -501,7 +501,8 @@ getdistro () {
;;
"iPhone OS")
distro="iOS $(sw_vers -productVersion 2>/dev/null)"
distro="iOS $(sw_vers -productVersion)"
distro=${distro% *}
;;
"OpenBSD")