Solaris: Strip out crap from getdistro output
This commit is contained in:
parent
d39bebb2a4
commit
24e7216777
1
neofetch
1
neofetch
|
@ -233,6 +233,7 @@ getdistro() {
|
||||||
"on" | "tiny") distro="$(awk 'NR==1{print $1 " " $2;}' /etc/release)" ;;
|
"on" | "tiny") distro="$(awk 'NR==1{print $1 " " $2;}' /etc/release)" ;;
|
||||||
*) distro="$(awk 'NR==1{print $1 " " $2 " " $3;}' /etc/release)" ;;
|
*) distro="$(awk 'NR==1{print $1 " " $2 " " $3;}' /etc/release)" ;;
|
||||||
esac
|
esac
|
||||||
|
distro="${distro/\(*}"
|
||||||
;;
|
;;
|
||||||
esac
|
esac
|
||||||
|
|
||||||
|
|
Reference in New Issue