Solaris: Better awk without gsub

This commit is contained in:
Muhammad Herdiansyah 2016-10-05 22:03:44 +07:00
parent 819b290edd
commit aa7e185d17

View file

@ -217,7 +217,7 @@ getdistro() {
;;
"Solaris")
distro="$(nawk 'NR==1{gsub(/^ \t]+|[ \t]+$/,""); printf $1 " " $2;}' /etc/release)"
distro="$(awk 'NR==1{print $1 " " $2;}' /etc/release)"
;;
esac