Commit aa7e185d authored by Muhammad Herdiansyah's avatar Muhammad Herdiansyah

Solaris: Better awk without gsub

parent 819b290e
......@@ -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
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment