mirror of
https://github.com/Hilbis/Hilbish
synced 2025-04-04 20:53:24 +00:00
fix: dont import util in the util package (bruh)
This commit is contained in:
parent
7174f40b5f
commit
d1934452bb
@ -5,8 +5,6 @@ package util
|
||||
import (
|
||||
"path/filepath"
|
||||
"os"
|
||||
|
||||
"hilbish/util"
|
||||
)
|
||||
|
||||
func FindExecutable(path string, inPath, dirs bool) error {
|
||||
@ -23,15 +21,15 @@ func FindExecutable(path string, inPath, dirs bool) error {
|
||||
} else {
|
||||
_, err := os.Stat(path)
|
||||
if err == nil {
|
||||
if util.Contains(pathExts, nameExt) { return nil }
|
||||
return util.ErrNotExec
|
||||
if Contains(pathExts, nameExt) { return nil }
|
||||
return ErrNotExec
|
||||
}
|
||||
}
|
||||
} else {
|
||||
_, err := os.Stat(path)
|
||||
if err == nil {
|
||||
if util.Contains(pathExts, nameExt) { return nil }
|
||||
return util.ErrNotExec
|
||||
if Contains(pathExts, nameExt) { return nil }
|
||||
return ErrNotExec
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user