From 7ec06618d655f79e9f06917b0c6ad53049a652b0 Mon Sep 17 00:00:00 2001 From: Lauren Datz <105828115+ladatz@users.noreply.github.com> Date: Fri, 9 Feb 2024 10:27:34 -0500 Subject: [PATCH] Update notice file workflow to work even if the file doesn't exist yet --- tools/notice_generation.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/notice_generation.sh b/tools/notice_generation.sh index bdc304e..c1d40fe 100755 --- a/tools/notice_generation.sh +++ b/tools/notice_generation.sh @@ -35,7 +35,7 @@ NOTICE_FILENAME="NOTICE" echo "Running cargo-about for NOTICE file generation..." cargo about generate --workspace devops/cg/about.hbs --config devops/cg/about.toml | sed -E 's/[ \t]+\r?$//' > $NOTICE_FILENAME -if [ -z "$(git diff --name-only $NOTICE_FILENAME)" ] +if [ -z "$(git diff --name-only $NOTICE_FILENAME)" ] && [ -z "$(git ls-files --others --exclude-standard)"] then echo "File not changed" else