Solaris: Strip out crap from getdistro output

This commit is contained in:
Muhammad Herdiansyah 2016-10-23 18:41:22 +07:00
parent d39bebb2a4
commit 24e7216777

View file

@ -233,6 +233,7 @@ getdistro() {
"on" | "tiny") distro="$(awk 'NR==1{print $1 " " $2;}' /etc/release)" ;;
*) distro="$(awk 'NR==1{print $1 " " $2 " " $3;}' /etc/release)" ;;
esac
distro="${distro/\(*}"
;;
esac