Add Pentester Framework.

This commit is contained in:
David Tomaschik
2015-11-18 00:23:21 -08:00
parent 0ce708d0ec
commit 056f0087e7

View File

@@ -66,8 +66,12 @@ function install_git {
} }
function add_bin_symlink { function add_bin_symlink {
local LINKNAME=${2:-`basename $1`} local LINKNAME=${HOME}/bin/${2:-`basename $1`}
ln -s ${1} ${HOME}/bin/${LINKNAME} if [[ -e ${LINKNAME} && ! -h ${LINKNAME} ]] ; then
echo "Refusing to overwrite ${LINKNAME}" >&2
return 1
fi
ln -sf ${1} ${LINKNAME}
} }
function postinstall { function postinstall {