Only source setenv.sh if available.

This commit is contained in:
David Tomaschik
2016-03-16 04:03:09 -07:00
parent 58db233697
commit 56ca5cc721

View File

@@ -4,7 +4,9 @@ export NAME=$(basename "$0")
export BASE="/opt/metasploit" # TODO: search this path export BASE="/opt/metasploit" # TODO: search this path
# Autogen'd # Autogen'd
. ${BASE}/scripts/setenv.sh if [ -f "${BASE}/scripts/setenv.sh" ] ; then
. ${BASE}/scripts/setenv.sh
fi
# Use Pro's bundled gems instead of the gemcache # Use Pro's bundled gems instead of the gemcache
export MSF_BUNDLE_GEMS=0 export MSF_BUNDLE_GEMS=0