fix version module

This commit is contained in:
xvzc 2024-08-07 07:38:16 +09:00
parent 6c66b2857c
commit 11fa22c7da
3 changed files with 2 additions and 2 deletions

View File

@ -17,7 +17,7 @@ func main() {
util.ParseArgs()
config := util.GetConfig()
if *config.Version {
PrintVersion()
version.PrintVersion()
os.Exit(0)
}

View File

@ -2,7 +2,7 @@ package version
import _ "embed"
//go:embed .version
//go:embed VERSION
var VERSION string
func PrintVersion() {