MCPcopy
hub / github.com/ddworken/hishtory / getPossiblyOverriddenVersion

Function getPossiblyOverriddenVersion

client/cmd/update.go:268–273  ·  view source on GitHub ↗
(updateInfo shared.UpdateInfo)

Source from the content-addressed store, hash-verified

266}
267
268func getPossiblyOverriddenVersion(updateInfo shared.UpdateInfo) string {
269 if forcedVersion := os.Getenv("HISHTORY_FORCE_CLIENT_VERSION"); forcedVersion != "" {
270 return forcedVersion
271 }
272 return updateInfo.Version
273}
274
275func getTmpClientPath() string {
276 tmpDir := "/tmp/"

Callers 2

updateFunction · 0.85
verifyBinaryMacFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected