nicolargo / glancesautoinstall

Glances Auto Install script
MIT License
60 stars 42 forks source link

Prevent installer from erroring out #28

Closed nalpine closed 5 years ago

nalpine commented 5 years ago

The install script was erroring out on Ubuntu on WSL due to a pair of brackets that I believe were accidently added around fedora in a previous commit.

Detected system: Ubuntu
/bin/bash: line 59: conditional binary operator expected                                                               
/bin/bash: line 59: syntax error near `$distrib_name'                                                                   
/bin/bash: line 59: `elif [[ $distrib_name == "redhat" || $distrib_name == "centos" || [[ $distrib_name == "fedora" ]] || $distrib_name == "Scientific" ]]; then'