Skip to content

Commit 0e3a0b6

Browse files
committed
Update READMEs
Fix typo Fix typo in comment
1 parent db0602b commit 0e3a0b6

File tree

5 files changed

+11
-11
lines changed

5 files changed

+11
-11
lines changed

README.ja.md

+5-5
Original file line numberDiff line numberDiff line change
@@ -1220,15 +1220,15 @@ see [go-cve-dictionary#usage-fetch-jvn-data](https://github.com/kotakanbe/go-cve
12201220
**fetchnvd -> fetchjvnの順番で実行すること**
12211221
12221222
```
1223-
$ for i in {2002..2016}; do go-cve-dictionary fetchnvd -years $i; done
1224-
$ for i in {1998..2016}; do go-cve-dictionary fetchjvn -years $i; done
1223+
$ for i in `seq 2002 $(date +"%Y")`; do go-cve-dictionary fetchnvd -years $i; done
1224+
$ for i in `seq 1998 $(date +"%Y")`; do go-cve-dictionary fetchjvn -years $i; done
12251225
```
12261226
の順でやった場合、最初のコマンドが15分程度、二つ目のコマンドが10分程度(環境依存)
12271227
12281228
12291229
```
1230-
$ for i in {1998..2016}; do go-cve-dictionary fetchjvn -years $i; done
1231-
$ for i in {2002..2016}; do go-cve-dictionary fetchnvd -years $i; done
1230+
$ for i in `seq 1998 $(date +"%Y")`; do go-cve-dictionary fetchjvn -years $i; done
1231+
$ for i in `seq 2002 $(date +"%Y")`; do go-cve-dictionary fetchnvd -years $i; done
12321232
```
12331233
の順で行うと、最初のコマンドは1時間くらいで終わるが二つ目のコマンドが21時間かかることもある(環境依存)。
12341234
@@ -1261,7 +1261,7 @@ $ git pull
12611261
$ mv vendor /tmp/bar
12621262
$ make install
12631263
```
1264-
- バイナリファイルは`$GOPARH/bin`以下に作成される
1264+
- バイナリファイルは`$GOPATH/bin`以下に作成される
12651265
12661266
---
12671267

README.md

+3-3
Original file line numberDiff line numberDiff line change
@@ -168,7 +168,7 @@ $ git clone https://github.com/kotakanbe/go-cve-dictionary.git
168168
$ cd go-cve-dictionary
169169
$ make install
170170
```
171-
The binary was built under `$GOPARH/bin`
171+
The binary was built under `$GOPATH/bin`
172172

173173
Fetch vulnerability data from NVD.
174174
It takes about 10 minutes (on AWS).
@@ -192,7 +192,7 @@ $ git clone https://github.com/future-architect/vuls.git
192192
$ cd vuls
193193
$ make install
194194
```
195-
The binary was built under `$GOPARH/bin`
195+
The binary was built under `$GOPATH/bin`
196196

197197
## Step6. Config
198198

@@ -1224,7 +1224,7 @@ $ git pull
12241224
$ mv vendor /tmp/bar
12251225
$ make install
12261226
```
1227-
Binary file was built under $GOPARH/bin
1227+
Binary file was built under $GOPATH/bin
12281228
12291229
---
12301230

models/models.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -192,7 +192,7 @@ func (r ScanResult) ServerInfoTui() string {
192192
)
193193
}
194194

195-
// FormatServerName returns server and contianer name
195+
// FormatServerName returns server and container name
196196
func (r ScanResult) FormatServerName() string {
197197
if len(r.Container.ContainerID) == 0 {
198198
return r.ServerName

setup/docker/README.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -92,7 +92,7 @@ vuls v0.1.xxx xxxx
9292
## Step1. Fetch NVD
9393

9494
```console
95-
$ for i in {2002..2016}; do \
95+
$ for i in `seq 2002 $(date +"%Y")`; do \
9696
docker run --rm -it \
9797
-v $PWD:/vuls \
9898
-v $PWD/go-cve-dictionary-log:/var/log/vuls \

setup/docker/go-cve-dictionary/latest/README.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ $ docker run --rm vuls/go-cve-dictionary -v
4343
## fetchnvd
4444

4545
```console
46-
$ for i in {2002..2016}; do \
46+
$ for i in `seq 2002 $(date +"%Y")`; do \
4747
docker run --rm -it \
4848
-v $PWD:/vuls \
4949
-v $PWD/go-cve-dictionary-log:/var/log/vuls \

0 commit comments

Comments
 (0)