Commit b83210af authored by Dylan Araps's avatar Dylan Araps Committed by GitHub

Merge pull request #354 from konimex/master

Solaris: Better awk without gsub
parents 819b290e aa7e185d
...@@ -217,7 +217,7 @@ getdistro() { ...@@ -217,7 +217,7 @@ getdistro() {
;; ;;
"Solaris") "Solaris")
distro="$(nawk 'NR==1{gsub(/^ \t]+|[ \t]+$/,""); printf $1 " " $2;}' /etc/release)" distro="$(awk 'NR==1{print $1 " " $2;}' /etc/release)"
;; ;;
esac 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