fix minor qtrcc issue

This commit is contained in:
therecipe 2018-04-30 22:56:13 +02:00
parent e94fc48f4a
commit 7038382d6c

View file

@ -77,7 +77,7 @@ func main() {
utils.Log.WithError(err).WithField("path", path).Fatal("can't resolve absolute path")
}
}
if !filepath.IsAbs(output) {
if output != "" && !filepath.IsAbs(output) {
output, err = filepath.Abs(output)
if err != nil {
utils.Log.WithError(err).WithField("output", output).Fatal("can't resolve absolute path")