File writing, index sorting

This commit is contained in:
comp500
2019-04-25 19:22:02 +01:00
parent d6b55b8032
commit 64a73afdf7
4 changed files with 85 additions and 8 deletions

View File

@@ -22,6 +22,6 @@ func ResolveIndex(flags Flags) (string, error) {
if filepath.IsAbs(pack.Index.File) {
return pack.Index.File, nil
}
return filepath.Join(flags.PackFile, pack.Index.File), nil
return filepath.Join(filepath.Dir(flags.PackFile), pack.Index.File), nil
}