diff options
author | Flu0r1ne <flur01ne@flu0r1ne.net> | 2021-09-03 19:56:07 -0500 |
---|---|---|
committer | Flu0r1ne <flur01ne@flu0r1ne.net> | 2021-09-03 19:56:07 -0500 |
commit | bc26f02dcdd5ce7d3badf8df5065321538c4c872 (patch) | |
tree | 8f1e052843de0063a2c42fa622ddfc553b371a79 /softscript.go | |
parent | ff3c1b99f691640a386fd452fa3b3e77769b9138 (diff) | |
download | deb-planr-bc26f02dcdd5ce7d3badf8df5065321538c4c872.tar.xz deb-planr-bc26f02dcdd5ce7d3badf8df5065321538c4c872.zip |
Renamed softscript to dirtyscripting to better describe function
Diffstat (limited to 'softscript.go')
-rw-r--r-- | softscript.go | 42 |
1 files changed, 0 insertions, 42 deletions
diff --git a/softscript.go b/softscript.go deleted file mode 100644 index 9924d54..0000000 --- a/softscript.go +++ /dev/null @@ -1,42 +0,0 @@ -package planr - -import ( - "io" - "os" - "os/exec" - "log" -) - -func RunCmd(name string, args ...string) { - cmd := exec.Command(name, args...) - - stderr, err := cmd.StderrPipe() - if err != nil { - log.Fatal(err); - } - - stdout, err := cmd.StdoutPipe() - if err != nil { - log.Fatal(err); - } - - go func() { - io.Copy(os.Stderr, stderr) - }() - - go func() { - io.Copy(os.Stdout, stdout) - }() - - if err := cmd.Start(); err != nil { - log.Fatal(err) - } - - if err != nil { - log.Fatal(err) - } - - if err := cmd.Wait(); err != nil { - log.Fatalf("Could not execute cmake command\n%v", err) - } -} |