From 6fe9d78c52e8371f3547a2692db83cc0a6e5c10d Mon Sep 17 00:00:00 2001 From: Samuel Dionne-Riel Date: Sun, 10 Jun 2018 12:49:11 -0400 Subject: [PATCH] Actually write data. --- devices/devices-to-json.rb | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/devices/devices-to-json.rb b/devices/devices-to-json.rb index b4ed6a99..32d31298 100755 --- a/devices/devices-to-json.rb +++ b/devices/devices-to-json.rb @@ -48,5 +48,6 @@ Dir.chdir("#{WORKDIR}/pmbootstrap-master") do end end -File.open("postmarketOS-devices.json", "w") -JSON.pretty_generate($devices) +File.open("postmarketOS-devices.json", "w") do |f| + f.write(JSON.pretty_generate($devices)) +end