Skip to content

Commit e575456

Browse files
author
cong.li
committed
update
1 parent ce90b87 commit e575456

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

main.go

+5-1
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,11 @@ func init() {
3232
os.Exit(0)
3333
}
3434
if dir == "./" {
35-
dir, _ = os.Getwd()
35+
d, err := os.Getwd()
36+
if err != nil {
37+
log.Fatal(err)
38+
}
39+
dir = d
3640
}
3741
}
3842

0 commit comments

Comments
 (0)