Do suggestions by Midou

Signed-off-by: Odyssey <hi@odyssey346.dev>
このコミットが含まれているのは:
Odyssey 2023-02-11 12:48:17 +01:00
コミット ef0648cf9e
1個のファイルの変更3行の追加3行の削除

ファイルの表示

@ -25,7 +25,7 @@ func init() {
func update() {
if os.Getenv("DOCKER") == "true" {
println("The GotHub update command does not work on Docker. Just re-create the container with a new image.")
println("The GotHub update command does not work on Docker. Please re-create the container with a new image instead.")
os.Exit(1)
}
gitPull := exec.Command("git", "pull")
@ -43,7 +43,7 @@ func update() {
if runtime.GOOS == "windows" {
err := exec.Command("go", "build", "-o", "gothub.exe").Run()
if err != nil {
println("Couldn't build GotHub. ", err)
println("Couldn't build GotHub.", err)
os.Exit(1)
} else {
println("GotHub updated successfully.")
@ -52,7 +52,7 @@ func update() {
} else {
err := exec.Command("go", "build").Run()
if err != nil {
println("Couldn't build GotHub. ", err)
println("Couldn't build GotHub.", err)
os.Exit(1)
} else {
println("GotHub updated successfully.")