Made fatal errors clearer and fixed bug in fetch script
This commit is contained in:
parent
0d3d3fafb2
commit
ce9813a2af
@ -43,3 +43,6 @@ if [ -n "$DISPLAY_PROTOCOL" ]; then
|
|||||||
done
|
done
|
||||||
fi
|
fi
|
||||||
[ -n "$DE_WM" ] && echo -e "${C3}DE/WM: ${C4}${DE_WM}"
|
[ -n "$DE_WM" ] && echo -e "${C3}DE/WM: ${C4}${DE_WM}"
|
||||||
|
|
||||||
|
# Exiting with error code 0 in case the condition above returns 1
|
||||||
|
exit 0
|
2
main.go
2
main.go
@ -260,7 +260,7 @@ func runStormfetch() {
|
|||||||
}
|
}
|
||||||
out, err := cmd.Output()
|
out, err := cmd.Output()
|
||||||
if err != nil {
|
if err != nil {
|
||||||
log.Fatal(err)
|
log.Fatalf("Error: Could not run fetch script: %s", err)
|
||||||
}
|
}
|
||||||
// Print Distro Information
|
// Print Distro Information
|
||||||
maxWidth := 0
|
maxWidth := 0
|
||||||
|
2
utils.go
2
utils.go
@ -244,7 +244,7 @@ func GetShell() string {
|
|||||||
func GetDEWM() string {
|
func GetDEWM() string {
|
||||||
processes, err := ps.Processes()
|
processes, err := ps.Processes()
|
||||||
if err != nil {
|
if err != nil {
|
||||||
log.Fatal(err)
|
log.Fatalf("Error: could not get processes: %s", err)
|
||||||
}
|
}
|
||||||
var executables []string
|
var executables []string
|
||||||
for _, process := range processes {
|
for _, process := range processes {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user