Skip to content

Commit 3dd1201

Browse files
author
wrobeljakub
committed
Fixed the imports
1 parent b8683bd commit 3dd1201

File tree

5 files changed

+15
-10
lines changed

5 files changed

+15
-10
lines changed

cmd_linux.go

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
package coldfire
22

3+
import "os/exec"
4+
35
func cmdOut(command string) (string, error) {
46
cmd := exec.Command("bash", "-c", command)
57
output, err := cmd.CombinedOutput()

coldfire_linux.go

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -3,16 +3,6 @@
33
// Linux and Windows operating systems.
44
package coldfire
55

6-
import (
7-
"fmt"
8-
"github.com/google/gopacket/pcap"
9-
"os"
10-
"os/exec"
11-
"strconv"
12-
"strings"
13-
14-
ps "github.com/mitchellh/go-ps"
15-
)
166

177
func clearLogs() error {
188
_, err := cmdOut("rm -r /var/log")

net_linux.go

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,9 @@
11
package coldfire
22

3+
import (
4+
"strings"
5+
"github.com/google/gopacket/pcap"
6+
)
37
func networks() ([]string, error) {
48
wifi_names := []string{}
59

os_linux.go

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,12 @@
11
package coldfire
22

3+
import (
4+
"strings"
5+
"strconv"
6+
"fmt"
7+
"os"
8+
"github.com/mitchellh/go-ps"
9+
)
310
func info() string {
411
user, err := cmdOut("whoami")
512
if err != nil {

sandbox_linux.go

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
package coldfire
22

3+
import "os"
4+
35
func sandboxFilepath() bool {
46
out, _ := cmdOut("systemd-detect-virt")
57
return out != "none"

0 commit comments

Comments
 (0)