Merge pull request #354 from konimex/master

Solaris: Better awk without gsub
This commit is contained in:
Dylan Araps 2016-10-06 08:29:56 +11:00 committed by GitHub
commit b83210af5f

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