Files
metasploit-gs/tools/automation/cache/update_module_cache.sh
T

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

21 lines
472 B
Bash
Raw Normal View History

#!/bin/sh -ex
2021-03-08 17:33:32 -06:00
if [ ! -f "msfconsole" ]; then
echo "Missing 'msfconsole' the tool should only be run from the root of the repository.'"
exit 1
fi
DOCKER_EXEC=`which docker`
if [ -z "$DOCKER_EXEC" ]; then
echo "Docker is required to run this tool."
exit 1
fi
IMG='metasploitframework/metasploit-framework:latest'
docker run --rm=true --tty \
--volume=`pwd`:/r7-source \
--workdir=/r7-source ${IMG} \
/bin/sh -c ./tools/automation/cache/build_new_cache.sh