File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed
Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change 5959 githubAPIBase = "https://api.github.com"
6060 download = doDownload
6161 osExecutable = os .Executable
62- disableUpdateSubcommand = "false"
62+ // I have to use a string for DisableUpdateCmd because of the limitations of the -X flag in Go build.
63+ DisableUpdateCmd = "false"
6364)
6465
6566// semverDiffers reports whether versions a and b differ (ignoring leading 'v').
@@ -506,8 +507,7 @@ then downloads and replaces the current binary.`,
506507}
507508
508509func init () {
509- // I have to use a string here because of the limitations of the -X flag in Go build.
510- if disableUpdateSubcommand == "true" {
510+ if DisableUpdateCmd == "true" {
511511 return
512512 }
513513 updateCmd .Flags ().AddFlagSet (progress .AnswerYesFlag )
You can’t perform that action at this time.
0 commit comments