Compare commits

..

No commits in common. "2bfb5ffddfa004fa6e6967845b3825ab856b1291" and "b374c11c8628d02172fbd7a536abfeb6fd53e155" have entirely different histories.

View File

@ -32,7 +32,7 @@ import (
"unlock-music.dev/cli/internal/utils" "unlock-music.dev/cli/internal/utils"
) )
var AppVersion = "v0.2.10" var AppVersion = "v0.2.9"
var logger = setupLogger(false) // TODO: inject logger to application, instead of using global logger var logger = setupLogger(false) // TODO: inject logger to application, instead of using global logger
@ -135,11 +135,6 @@ func appMain(c *cli.Context) (err error) {
} }
} }
input, absErr := filepath.Abs(input)
if absErr != nil {
return fmt.Errorf("get abs path failed: %w", absErr)
}
output := c.String("output") output := c.String("output")
inputStat, err := os.Stat(input) inputStat, err := os.Stat(input)
if err != nil { if err != nil {
@ -152,10 +147,6 @@ func appMain(c *cli.Context) (err error) {
} else { } else {
inputDir = path.Dir(input) inputDir = path.Dir(input)
} }
inputDir, absErr = filepath.Abs(inputDir)
if absErr != nil {
return fmt.Errorf("get abs path (inputDir) failed: %w", absErr)
}
if output == "" { if output == "" {
// Default to where the input dir is // Default to where the input dir is