From 9270236d5bacafe6d8247ef13a34a0d03c05f636 Mon Sep 17 00:00:00 2001 From: Benedikt Peetz Date: Fri, 4 Oct 2024 17:54:28 +0200 Subject: fix(common/init): Check for not replaced `%INIT_` variables --- common/init | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/common/init b/common/init index 4298e68..b645441 100644 --- a/common/init +++ b/common/init @@ -181,6 +181,11 @@ while read -r var; do done done <"$replacement_file" +if [ "$(rg "%INIT_" --files-with-matches | wc -l)" -ne 0 ]; then + echo "Following init variables were not replaced. This is a bug." + rg "%INIT_" +fi + # HACK: Re-add the executable permissions to files, which the nix template has somehow # removed <2024-04-02> chmod +x scripts/* -- cgit 1.4.1