From 65317503cf3a82c7d4a6ac995d1d8103d6aaf322 Mon Sep 17 00:00:00 2001 From: Kailash Nadh Date: Wed, 26 Jun 2019 16:55:59 +0530 Subject: [PATCH] Remove hardcoded binary name from unstuff routine --- main.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/main.go b/main.go index 58fa6e8..a8ce9d5 100644 --- a/main.go +++ b/main.go @@ -89,7 +89,7 @@ func initConfig(ko *koanf.Koanf) error { // initFileSystem initializes the stuffbin FileSystem to provide // access to bunded static assets to the app. func initFileSystem(binPath string) (stuffbin.FileSystem, error) { - fs, err := stuffbin.UnStuff("./listmonk") + fs, err := stuffbin.UnStuff(os.Args[0]) if err == nil { return fs, nil }