From 964e7c5c9b3aa73ae87a02d98c1e5d6eaa973df9 Mon Sep 17 00:00:00 2001 From: hzy Date: Sat, 18 Jun 2022 13:30:00 +0800 Subject: [PATCH] Fix bug: split command --- cli/main.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cli/main.go b/cli/main.go index 131b11e..9c6d8b0 100644 --- a/cli/main.go +++ b/cli/main.go @@ -113,7 +113,7 @@ func pack(filePath, dirPath string) error { defer cmdfile.Close() scanner := bufio.NewScanner(cmdfile) - scanner.Split(bufio.ScanWords) + scanner.Split(bufio.ScanLines) for scanner.Scan() { txt := scanner.Text()