Skip to content

Commit

Permalink
Fix bug: split command
Browse files Browse the repository at this point in the history
  • Loading branch information
hzyitc committed Jun 18, 2022
1 parent dac9b9f commit 964e7c5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cli/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -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()
Expand Down

0 comments on commit 964e7c5

Please sign in to comment.