Skip to content

Commit cf98f52

Browse files
committed
Should resuce nil as well
1 parent 1facfcf commit cf98f52

File tree

1 file changed

+1
-1
lines changed
  • lib/rex/post/meterpreter/ui/console/command_dispatcher/stdapi

1 file changed

+1
-1
lines changed

lib/rex/post/meterpreter/ui/console/command_dispatcher/stdapi/fs.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -324,7 +324,7 @@ def cmd_edit(*args)
324324
end
325325

326326
# Get rid of that pesky temporary file
327-
::File.delete(temp_path)
327+
::File.delete(temp_path) rescue nil
328328
end
329329

330330
#

0 commit comments

Comments
 (0)