From 8f97c0421b48e4cb848e0d78797a13aeed9bfe14 Mon Sep 17 00:00:00 2001 From: Akira TAGOH Date: Mon, 19 Apr 2021 17:37:57 +0900 Subject: [PATCH] trivial fix to make it buildable --- google-noto-fonts.spec | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/google-noto-fonts.spec b/google-noto-fonts.spec index 35c371c..a1114fd 100644 --- a/google-noto-fonts.spec +++ b/google-noto-fonts.spec @@ -750,9 +750,13 @@ local function gentestyaml() end io.stderr:write("Generating tests.yml...") local f = io.open("tests/tests.yml", "w") - f:write(yaml) - f:close() - io.stderr:write("Done!") + if f then + f:write(yaml) + f:close() + io.stderr:write("Done!") + else + io.stderr:write("Unable to open tests.yml") + end end local function notopkg(table)