File tree Expand file tree Collapse file tree 1 file changed +5
-5
lines changed Expand file tree Collapse file tree 1 file changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -12,7 +12,7 @@ import (
1212)
1313
1414const shellToUse = "bash"
15- const appVersion = "v1.2.2 "
15+ const appVersion = "v1.2.3 "
1616
1717var (
1818 gitBaseCommand = "git"
@@ -323,13 +323,13 @@ func writeLine(f *os.File, line string) {
323323func 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 {
You can’t perform that action at this time.
0 commit comments