Skip to content
Permalink
Branch: master
Find file Copy path
Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
84 lines (61 sloc) 1.88 KB
#!/bin/bash
set -e
GOCVEDICTIONARY=$GOPATH/src/github.com/kotakanbe/go-cve-dictionary
GOVALDICTIONARY=$GOPATH/src/github.com/kotakanbe/goval-dictionary
GOST=$GOPATH/src/github.com/knqyf263/gost
GOEXPLOITDB=$GOPATH/src/github.com/mozqnet/go-exploitdb
VULS=$GOPATH/src/github.com/future-architect/vuls
## Current goval/go-cve-dictionary,Vuls version
echo -e "----Current goval/go-cve-dictionary/gost,Vuls version----"
go-cve-dictionary -v
goval-dictionary -v
gost -v
go-exploitdb -v
vuls -v
## Update go-cve-dictionary
echo -e "\n----Update go-cve-dictionary----"
cd $GOCVEDICTIONARY && git pull > /dev/null 2>&1 && rm -rf vendor && rm -rf $GOPATH/pkg && make install > /dev/null 2>&1
if [ $? = 0 ]; then
echo "Update OK"
else
echo "Update NO!!"
fi
## Update goval-dictionary
echo -e "\n----Update goval-dictionary----"
cd $GOVALDICTIONARY && git pull > /dev/null 2>&1 && rm -rf vendor && rm -rf $GOPATH/pkg && make install > /dev/null 2>&1
if [ $? = 0 ]; then
echo "Update OK"
else
echo "Update NO!!"
fi
## Update gost
echo -e "\n----Update gost----"
cd $GOST && git pull > /dev/null 2>&1 && rm -rf vendor && rm -rf $GOPATH/pkg && make install > /dev/null 2>&1
if [ $? = 0 ]; then
echo "Update OK"
else
echo "Update NO!!"
fi
## Update go-exploitdb
echo -e "\n----Update go-exploitdb----"
cd $GOEXPLOITDB && git pull > /dev/null 2>&1 && rm -rf vendor && rm -rf $GOPATH/pkg && make install > /dev/null 2>&1
if [ $? = 0 ]; then
echo "Update OK"
else
echo "Update NO!!"
fi
## Update Vuls
echo -e "\n----Update Vuls----"
cd $VULS && git pull > /dev/null 2>&1 && rm -rf vendor && rm -rf $GOPATH/pkg && make install > /dev/null 2>&1
if [ $? = 0 ]; then
echo "Update OK"
else
echo "Update NO!!"
fi
## New goval/go-cve-dictionary/gost,Vuls version
echo -e "\n----New goval/go-cve-dictionary,Vuls version----"
go-cve-dictionary -v
goval-dictionary -v
go-exploitdb -v
gost -v
vuls -v
You can’t perform that action at this time.