Skip to content

Commit

Permalink
fix: Fix trailing pipe causing everything to rebuild. Sorry...
Browse files Browse the repository at this point in the history
  • Loading branch information
charlielye committed Oct 17, 2023
1 parent f7cd978 commit d13ba75
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions build-system/scripts/calculate_content_hash
Original file line number Diff line number Diff line change
Expand Up @@ -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)"

Expand Down

0 comments on commit d13ba75

Please sign in to comment.