mirror of
https://github.com/gilbertchen/duplicacy
synced 2025-12-11 05:43:23 +00:00
Print git commit number
This commit is contained in:
@@ -32,6 +32,7 @@ const (
|
|||||||
)
|
)
|
||||||
|
|
||||||
var ScriptEnabled bool
|
var ScriptEnabled bool
|
||||||
|
var GitCommit = "unofficial"
|
||||||
|
|
||||||
func getRepositoryPreference(context *cli.Context, storageName string) (repository string,
|
func getRepositoryPreference(context *cli.Context, storageName string) (repository string,
|
||||||
preference *duplicacy.Preference) {
|
preference *duplicacy.Preference) {
|
||||||
@@ -1992,7 +1993,7 @@ func main() {
|
|||||||
app.Name = "duplicacy"
|
app.Name = "duplicacy"
|
||||||
app.HelpName = "duplicacy"
|
app.HelpName = "duplicacy"
|
||||||
app.Usage = "A new generation cloud backup tool based on lock-free deduplication"
|
app.Usage = "A new generation cloud backup tool based on lock-free deduplication"
|
||||||
app.Version = "2.1.1"
|
app.Version = "2.1.1" + " (" + GitCommit + ")"
|
||||||
|
|
||||||
// If the program is interrupted, call the RunAtError function.
|
// If the program is interrupted, call the RunAtError function.
|
||||||
c := make(chan os.Signal, 1)
|
c := make(chan os.Signal, 1)
|
||||||
|
|||||||
Reference in New Issue
Block a user