cmd/mkpkg: allow zero files in a package.

Signed-off-by: David Anderson <[email protected]>
This commit is contained in:
David Anderson authored and Dave Anderson committed 2021-06-07 16:22:23 -07:00
1 parent 7fab244614
commit 1c6946f971
1 file changed
+3
+3
View File
@@ -21,6 +21,9 @@ import (
// into a map of filePathOnDisk -> filePathInPackage.
func parseFiles(s string) (map[string]string, error) {
ret := map[string]string{}
if len(s) == 0 {
return ret, nil
}
for _, f := range strings.Split(s, ",") {
fs := strings.Split(f, ":")
if len(fs) != 2 {