about summary refs log tree commit diff stats
diff options
context:
space:
mode:
-rw-r--r--common/init5
1 files changed, 5 insertions, 0 deletions
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/*