Remove hardcoded binary name from unstuff routine
This commit is contained in:
parent
fe4f39f65d
commit
65317503cf
2
main.go
2
main.go
|
@ -89,7 +89,7 @@ func initConfig(ko *koanf.Koanf) error {
|
||||||
// initFileSystem initializes the stuffbin FileSystem to provide
|
// initFileSystem initializes the stuffbin FileSystem to provide
|
||||||
// access to bunded static assets to the app.
|
// access to bunded static assets to the app.
|
||||||
func initFileSystem(binPath string) (stuffbin.FileSystem, error) {
|
func initFileSystem(binPath string) (stuffbin.FileSystem, error) {
|
||||||
fs, err := stuffbin.UnStuff("./listmonk")
|
fs, err := stuffbin.UnStuff(os.Args[0])
|
||||||
if err == nil {
|
if err == nil {
|
||||||
return fs, nil
|
return fs, nil
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue