Fixes a crash on startup when no svn directories are present

git-svn-id: file:///home/svn/framework3/trunk@7438 4d416f70-5f16-0410-b530-b9f4589650da
unstable
HD Moore 2009-11-10 03:05:12 +00:00
parent 4321b992dc
commit 2bec0701a7
1 changed files with 1 additions and 1 deletions

View File

@ -179,7 +179,7 @@ class Core
oldwarn = nil
banner << "#{framework.stats.num_payloads} payloads - #{framework.stats.num_encoders} encoders - #{framework.stats.num_nops} nops\n"
if ( ::Msf::Framework::RepoRevision > 0)
if ( ::Msf::Framework::RepoRevision.to_i > 0)
banner << " =[ svn r#{::Msf::Framework::RepoRevision} updated #{::Msf::Framework::RepoUpdatedDaysNote}\n"
if(::Msf::Framework::RepoUpdatedDays > 7)
oldwarn = []