mirror of
https://github.com/rclone/rclone.git
synced 2025-12-06 00:03:32 +00:00
Write version.txt on building into root of downloads
This commit is contained in:
@@ -6,6 +6,8 @@ package main
|
||||
|
||||
import (
|
||||
"flag"
|
||||
"fmt"
|
||||
"io/ioutil"
|
||||
"log"
|
||||
"os"
|
||||
"os/exec"
|
||||
@@ -198,5 +200,9 @@ func main() {
|
||||
if err != nil {
|
||||
log.Fatalf("Couldn't cd into build dir: %v", err)
|
||||
}
|
||||
err = ioutil.WriteFile("version.txt", []byte(fmt.Sprintf("rclone %s\n", version)), 0666)
|
||||
if err != nil {
|
||||
log.Fatalf("Couldn't write version.txt: %v", err)
|
||||
}
|
||||
compile(version)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user