File tree Expand file tree Collapse file tree 2 files changed +4
-3
lines changed Expand file tree Collapse file tree 2 files changed +4
-3
lines changed Original file line number Diff line number Diff line change
1
+ go build -buildmode=pie -ldflags " -s -w -X 'main.COMMIT=` git rev-parse --short HEAD` '" -gcflags " all=-trimpath=$GOPATH "
Original file line number Diff line number Diff line change @@ -11,8 +11,8 @@ import (
11
11
"ret/util"
12
12
)
13
13
14
- const (
15
- VERSION = "0.1.24 "
14
+ var (
15
+ COMMIT = ""
16
16
)
17
17
18
18
func main () {
@@ -52,7 +52,7 @@ func main() {
52
52
"🔪 " + theme .StartUnderline + "chef" + theme .StopUnderline + "\n " +
53
53
theme .StopUnderline + theme .ColorReset )
54
54
55
- fmt .Printf (theme .ColorGray + "https://github.com/rerrorctf/ret " + theme .ColorPurple + "%s\n " + theme .ColorBlue , VERSION )
55
+ fmt .Printf (theme .ColorReset + "https://github.com/rerrorctf/ret " + theme .ColorPurple + "%s\n " + theme .ColorBlue , COMMIT )
56
56
}
57
57
58
58
flag .Parse ()
You can’t perform that action at this time.
0 commit comments