Removed too much verbosity from utils.GetPath when no env file is available, added new argument (path) to Exec family of funcs

This commit is contained in:
Paulo Truta
2021-06-12 12:53:36 +00:00
parent d9f8b2375c
commit d294948890
4 changed files with 18 additions and 18 deletions
+1 -1
View File
@@ -74,7 +74,7 @@ func GetDevices() []Device {
var devices []Device
cmdArgs := []string{"--raw", "--bytes", "--noheadings"}
scanner := utils.ExecAndGetLines("lsblk", cmdArgs)
scanner := utils.ExecAndGetLines("/", "lsblk", cmdArgs)
var currentDevice Device
var currentPartitions []Partition