CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutSign UpSign In
rapid7

CoCalc provides the best real-time collaborative environment for Jupyter Notebooks, LaTeX documents, and SageMath, scalable from individual users to large groups and classes!

GitHub Repository: rapid7/metasploit-framework
Path: blob/master/tools/automation/cache/update_module_cache.sh
Views: 1904
1
#!/bin/sh -ex
2
3
if [ ! -f "msfconsole" ]; then
4
echo "Missing 'msfconsole' the tool should only be run from the root of the repository.'"
5
exit 1
6
fi
7
8
DOCKER_EXEC=`which docker`
9
10
if [ -z "$DOCKER_EXEC" ]; then
11
echo "Docker is required to run this tool."
12
exit 1
13
fi
14
15
IMG='metasploitframework/metasploit-framework:latest'
16
17
docker run --rm=true --tty \
18
--volume=`pwd`:/r7-source \
19
--workdir=/r7-source ${IMG} \
20
/bin/sh -c ./tools/automation/cache/build_new_cache.sh
21
22