From 42be4490aa7859c763d38883b16135cc8c0907dc Mon Sep 17 00:00:00 2001 From: Simon Pane Date: Fri, 27 Jan 2023 10:46:33 -0700 Subject: [PATCH] Allow for a custom style.css file in the cfg directory --- sh/moat370_0b_pre.sh | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/sh/moat370_0b_pre.sh b/sh/moat370_0b_pre.sh index 7b50b06..acc5ded 100644 --- a/sh/moat370_0b_pre.sh +++ b/sh/moat370_0b_pre.sh @@ -577,7 +577,11 @@ fi fc_zip_file "${moat370_zip_filename}" "${moat370_sw_output_fdr}/LICENSE-3RD-PARTY.txt" -cp "${moat370_fdr_js}/style.css" "${moat370_sw_output_fdr}/${moat370_style_css}" >> "${moat370_log3}" +if [ -r "${moat370_sw_folder}/cfg/style.css" ] && [ -s "${moat370_sw_folder}/cfg/style.css" ]; then + cp "${moat370_sw_folder}/cfg/style.css" "${moat370_sw_output_fdr}/${moat370_style_css}" >>"${moat370_log3}" +else + cp "${moat370_fdr_js}/style.css" "${moat370_sw_output_fdr}/${moat370_style_css}" >>"${moat370_log3}" +fi fc_zip_file "${moat370_zip_filename}" "${moat370_sw_output_fdr}/${moat370_style_css}"