Solaris: Better awk without gsub
This commit is contained in:
parent
819b290edd
commit
aa7e185d17
1 changed files with 1 additions and 1 deletions
2
neofetch
2
neofetch
|
@ -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
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue