diff options
| author | Ophestra Umiker <cat@ophivana.moe> | 2024-11-02 03:03:44 +0900 |
|---|---|---|
| committer | Ophestra Umiker <cat@ophivana.moe> | 2024-11-02 03:13:57 +0900 |
| commit | 584732f80ab91afb349720cfb8e9979ed2ba173e (patch) | |
| tree | 8ef6ab9f8c9d3b8197682a53fb2c4a7b2ce8da55 /version.go | |
| parent | 4b7b899bb35fb4ea218dabe49a674f4d2f80e7f8 (diff) | |
cmd: shim and init into separate binaries
This change also fixes a deadlock when shim fails to connect and complete the setup.
Signed-off-by: Ophestra Umiker <cat@ophivana.moe>
Diffstat (limited to 'version.go')
| -rw-r--r-- | version.go | 10 |
1 files changed, 7 insertions, 3 deletions
@@ -3,11 +3,11 @@ package main import ( "flag" "fmt" + + "git.ophivana.moe/security/fortify/internal" ) var ( - Version = "impure" - printVersion bool ) @@ -17,7 +17,11 @@ func init() { func tryVersion() { if printVersion { - fmt.Println(Version) + if v, ok := internal.Check(internal.Version); ok { + fmt.Println(v) + } else { + fmt.Println("impure") + } os.Exit(0) } } |
