1
mirror of https://github.com/rapid7/metasploit-framework synced 2024-11-05 14:57:30 +01:00
metasploit-framework/msfupdate
HD Moore dfd9ddbdc8 Add a wait mode
git-svn-id: file:///home/svn/framework3/trunk@10744 4d416f70-5f16-0410-b530-b9f4589650da
2010-10-19 08:22:44 +00:00

24 lines
459 B
Ruby
Executable File

#!/usr/bin/env ruby
msfbase = __FILE__
while File.symlink?(msfbase)
msfbase = File.expand_path(File.readlink(msfbase), File.dirname(msfbase))
end
Dir.chdir(File.dirname(msfbase))
$stderr.puts "[*]"
$stderr.puts "[*] Attempting to update the Metasploit Framework..."
$stderr.puts "[*]"
$stderr.puts ""
system("svn update")
if ARGV.shift.to_s == "wait"
$stderr.puts ""
$stderr.puts "[*] Please hit enter to exit"
$stderr.puts ""
$stdin.readline
end