Merge branch 'master' of https://github.com/cbrunnkvist/exploit-database into cbrunnkvist-master

This commit is contained in:
Offensive Security 2014-12-10 17:19:42 +00:00
commit 186b3c8a86

View file

@ -9,9 +9,15 @@ TAGS=
SCASE='-i'
VERBOSE=0
# if files.csv is in the searchsploit path, use that
if [ -f "$( dirname $0 )/files.csv" ]; then
csvpath="$( dirname $0 )/files.csv"
# if files.csv is in the searchsploit source path, use that
scriptsrc=$0
while [ -h $scriptsrc ]; do
scriptsrc=$(readlink $scriptsrc)
[[ $scriptsrc != /* ]] && scriptsrc="$( cd -P $( dirname $scriptsrc ) && pwd )/$scriptsrc"
done
progdir="$( cd -P "$( dirname "$scriptsrc" )" && pwd )"
if [ -f "$progdir/files.csv" ]; then
csvpath="$progdir/files.csv"
fi
# usage info