버전 파일 경로 오류 수정

This commit is contained in:
2023-06-29 11:11:23 +09:00
parent 5429d3d90f
commit a8821b694b
2 changed files with 9 additions and 4 deletions

View File

@ -91,9 +91,14 @@ func main() {
if dec.Decode(&tempArgs) == nil {
nextArgs = tempArgs
}
} else if err := copy(path.Join(args[2], ent.Name()), ent.Name()); err != nil {
stdlog.Println("copy failed :", path.Join(args[2], ent.Name()), ent.Name())
stdlog.Fatal(err)
} else {
err := copy(path.Join(args[2], ent.Name()), ent.Name())
if err != nil {
stdlog.Println("copy failed :", path.Join(args[2], ent.Name()), ent.Name())
stdlog.Fatal(err)
} else {
stdlog.Println("file copied :", path.Join(args[2], ent.Name()), ent.Name())
}
}
}
}