metasploit: update update.sh
This commit is contained in:
parent
81715a5da0
commit
1ecc9846a7
|
@ -4,7 +4,7 @@
|
|||
set -eu -o pipefail
|
||||
cd "$(dirname "$(readlink -f "$0")")"
|
||||
|
||||
latest=$(curl https://github.com/rapid7/metasploit-framework/releases.atom | xmlstarlet sel -N atom="http://www.w3.org/2005/Atom" -t -m /atom:feed/atom:entry -v atom:title -n | head -n1)
|
||||
latest=$(curl https://github.com/rapid7/metasploit-framework/tags.atom | xmlstarlet sel -N atom="http://www.w3.org/2005/Atom" -t -m /atom:feed/atom:entry -v atom:title -n | head -n1)
|
||||
echo "Updating metasploit to $latest"
|
||||
|
||||
sed -i "s#refs/tags/.*#refs/tags/$latest\"#" Gemfile
|
||||
|
|
Loading…
Reference in a new issue