cmd/mkpkg: allow zero files in a package.

Signed-off-by: David Anderson <danderson@tailscale.com>
pull/2035/head
David Anderson 3 years ago committed by Dave Anderson
parent 7fab244614
commit 1c6946f971

@ -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 {

Loading…
Cancel
Save