# [CRUCIBLE-SEED]
# category: command_injection
# severity: critical
# language: ruby
# expected: system() with user-controlled arguments — command injection

def convert_image(src, dest, width, height)
  system("convert #{src} -resize #{width}x#{height} #{dest}")
end

def compress_archive(dir_path, output_name)
  system("tar -czf /tmp/#{output_name} #{dir_path}")
end

def run_script(script_name, args)
  system("/opt/scripts/#{script_name} #{args}")
end
