Skip to content

Commit 54705ee

Browse files
committed
Fix option parsing
1 parent 19effa7 commit 54705ee

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

modules/auxiliary/admin/http/jboss_bshdeployer.rb

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -126,8 +126,9 @@ def run
126126

127127
case action.name
128128
when 'Deploy'
129-
unless File.exist?(datastore['WARFILE'])
129+
unless datastore['WARFILE'] && File.exist?(datastore['WARFILE'])
130130
print_error("WAR file not found")
131+
return
131132
end
132133
war_data = File.read(datastore['WARFILE'])
133134
deploy_action(app_base, war_data)

0 commit comments

Comments
 (0)