Use awk instead for sw_vers

This commit is contained in:
Dylan 2016-05-08 10:25:12 +10:00
parent 2cd662d21e
commit 7c24e19264

View file

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