mirror of
https://github.com/tailscale/tailscale.git
synced 2026-12-04 15:42:20 -08:00
cmd/mkpkg: allow zero files in a package.
Signed-off-by: David Anderson <[email protected]>
This commit is contained in:
1 parent
7fab244614
commit
1c6946f971
1 file changed
+3
@@ -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 {
|
||||
|
||||
Reference in new issue
Block a user