mirror of
https://git.hackliberty.org/Awesome-Mirrors/WebHackersWeapons.git
synced 2024-08-26 00:58:56 -06:00
14 lines
365 B
Ruby
14 lines
365 B
Ruby
![]() |
require 'yaml'
|
||
|
|
||
|
Dir.entries("./weapons").each do | name |
|
||
|
if name.strip != "." || name != ".."
|
||
|
begin
|
||
|
data = YAML.load(File.open("./weapons/#{name}"))
|
||
|
data['platform'] = ['linux','macos','windows']
|
||
|
yaml_data = YAML.dump(data)
|
||
|
File.write("./weapons/#{name}", yaml_data)
|
||
|
rescue => e
|
||
|
puts e
|
||
|
end
|
||
|
end
|
||
|
end
|