From d13ba75bf5bdc7c11b848ca9c8a281f9eec6b015 Mon Sep 17 00:00:00 2001 From: Charlie Lye Date: Tue, 17 Oct 2023 10:47:21 +0000 Subject: [PATCH] fix: Fix trailing pipe causing everything to rebuild. Sorry... --- build-system/scripts/calculate_content_hash | 2 ++ 1 file changed, 2 insertions(+) diff --git a/build-system/scripts/calculate_content_hash b/build-system/scripts/calculate_content_hash index 8b6e85e8e7e..630595aa371 100755 --- a/build-system/scripts/calculate_content_hash +++ b/build-system/scripts/calculate_content_hash @@ -8,6 +8,8 @@ COMMIT_HASH=${2:-${COMMIT_HASH:-$(git rev-parse HEAD)}} # Get list of rebuild patterns, concat them with regex 'or' (|), and double escape \ for awk -v. AWK_PATTERN=$(query_manifest rebuildPatterns $REPOSITORY | tr '\n' '|' | sed 's/\\/\\\\/g') +# Remove the trailing '|'. +AWK_PATTERN=${AWK_PATTERN%|} cd "$(git rev-parse --show-toplevel)"