mirror of
https://github.com/EnumeratedDev/stormfetch.git
synced 2026-09-24 19:56:12 +00:00
Remove dependency on bash, switch to new module system and simplify code
This commit is contained in:
+2
-2
@@ -14,7 +14,7 @@ import (
|
||||
|
||||
func GetShell() string {
|
||||
runCommand := func(command string) string {
|
||||
cmd := exec.Command("/bin/bash", "-c", command)
|
||||
cmd := exec.Command("/bin/sh", "-c", command)
|
||||
workdir, err := os.Getwd()
|
||||
if err != nil {
|
||||
return ""
|
||||
@@ -74,7 +74,7 @@ func GetDEWM() string {
|
||||
return slices.Contains(executables, process)
|
||||
}
|
||||
runCommand := func(command string) string {
|
||||
cmd := exec.Command("/bin/bash", "-c", command)
|
||||
cmd := exec.Command("/bin/sh", "-c", command)
|
||||
workdir, err := os.Getwd()
|
||||
if err != nil {
|
||||
return ""
|
||||
|
||||
Reference in New Issue
Block a user