From 56ca5cc721ab6dccbcdf1ee09313ead1b277b729 Mon Sep 17 00:00:00 2001 From: David Tomaschik Date: Wed, 16 Mar 2016 04:03:09 -0700 Subject: [PATCH] Only source setenv.sh if available. --- bin/metasploit.sh | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/bin/metasploit.sh b/bin/metasploit.sh index 166fd1a..3b29a1f 100755 --- a/bin/metasploit.sh +++ b/bin/metasploit.sh @@ -4,7 +4,9 @@ export NAME=$(basename "$0") export BASE="/opt/metasploit" # TODO: search this path # 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 export MSF_BUNDLE_GEMS=0