Use awk instead for sw_vers

This commit is contained in:
Dylan 2016-05-08 10:25:12 +10:00
parent 2cd662d21e
commit 7c24e19264
1 changed files with 1 additions and 1 deletions

View File

@ -501,7 +501,7 @@ getdistro () {
;;
"iPhone OS")
distro="iOS $(sw_vers -productVersion)"
distro="iOS $(sw_vers | awk '/ProductVersion:/ {printf $2}')"
;;
"OpenBSD")