Skip to content

Commit 8139d2c

Browse files
committed
fix: fixed wrong path problem
1 parent 592ef0c commit 8139d2c

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

main.go

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ import (
1212
)
1313

1414
const shellToUse = "bash"
15-
const appVersion = "v1.2.2"
15+
const appVersion = "v1.2.3"
1616

1717
var (
1818
gitBaseCommand = "git"
@@ -323,13 +323,13 @@ func writeLine(f *os.File, line string) {
323323
func getReleaseFilePath() string {
324324
//path that provided via -o args
325325
filePath := fmt.Sprintf("%s%s", outputPath, releaseFileName)
326-
326+
327327
//if current directory
328328
if outputPath == "." {
329329
outputPath = fmt.Sprintf("./%s", logFileFolder)
330330

331-
//if run from another directory then project path need to add
332-
if len(projectPath) > 0 {
331+
//if repo directory supplied then project path need to add
332+
if projectPath != "." {
333333
outputPath = fmt.Sprintf("%s%s", projectPath, logFileFolder)
334334
}
335335

@@ -353,7 +353,7 @@ func writeReleaseLog() {
353353
}
354354

355355
releaseFilePath := getReleaseFilePath()
356-
356+
357357
//get previous contents because we need to prepend the latest log
358358
oldContents := []string{}
359359
if directoryOrFileExists(releaseFilePath) && !*writeNewFile {

0 commit comments

Comments
 (0)