Removed lshw as a dependency
Renamed Utils.go to utils.go
This commit is contained in:
parent
4c72295972
commit
c13c730e4c
@ -20,7 +20,6 @@ Stormfetch is still in beta, so distro compatibility is limited. If you would li
|
|||||||
- Download `make` from your package manager
|
- Download `make` from your package manager
|
||||||
- (Optional) Download `xorg-xhost` from your package manager to display DE/WM and monitor information
|
- (Optional) Download `xorg-xhost` from your package manager to display DE/WM and monitor information
|
||||||
- (Optional) Download `xorg-xdpyinfo` from your package manager to display screen resolution
|
- (Optional) Download `xorg-xdpyinfo` from your package manager to display screen resolution
|
||||||
- (Optional) Download `lshw` from your package manager to display GPU information
|
|
||||||
- Run the following command to compile the project
|
- Run the following command to compile the project
|
||||||
```
|
```
|
||||||
make
|
make
|
||||||
|
2
main.go
2
main.go
@ -74,7 +74,7 @@ func readConfig() {
|
|||||||
}
|
}
|
||||||
// Show Dependency warning if enabled
|
// Show Dependency warning if enabled
|
||||||
if config.DependencyWarning {
|
if config.DependencyWarning {
|
||||||
dependencies := []string{"lshw", "xhost", "xdpyinfo"}
|
dependencies := []string{"xhost", "xdpyinfo"}
|
||||||
var missing []string
|
var missing []string
|
||||||
for _, depend := range dependencies {
|
for _, depend := range dependencies {
|
||||||
if _, err := os.Stat(path.Join("/usr/bin/", depend)); err != nil {
|
if _, err := os.Stat(path.Join("/usr/bin/", depend)); err != nil {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user