Skip to content

Commit

Permalink
cmd/vinegar: move used util proc comm func internal
Browse files Browse the repository at this point in the history
  • Loading branch information
apprehensions committed Jan 30, 2024
1 parent 72ac44b commit 77307d1
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
3 changes: 1 addition & 2 deletions cmd/vinegar/binary.go
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,6 @@ import (
boot "github.com/vinegarhq/vinegar/roblox/bootstrapper"
"github.com/vinegarhq/vinegar/splash"
"github.com/vinegarhq/vinegar/sysinfo"
"github.com/vinegarhq/vinegar/util"
"github.com/vinegarhq/vinegar/wine"
)

Expand Down Expand Up @@ -275,7 +274,7 @@ func (b *Binary) Run(args ...string) error {
// may or may not prevent a race condition in procfs
syscall.Sync()

if util.CommFound("Roblox") {
if CommFound("Roblox") {
log.Println("Another Roblox instance is already running, not killing wineprefix")
return nil
}
Expand Down
2 changes: 1 addition & 1 deletion util/proc.go → cmd/vinegar/proc_linux.go
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
//go:build linux

package util
package main

import (
"os"
Expand Down

0 comments on commit 77307d1

Please sign in to comment.