From 34c798b222f7f8a5f7fbbdce3f0325f2a81875fa Mon Sep 17 00:00:00 2001 From: yukkop Date: Fri, 4 Apr 2025 14:13:54 +0000 Subject: [PATCH] fix: `c`: log colorized with terminal mode --- package/c/hmpl/make.sh | 4 ++-- package/c/hmpl/test/test.c | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/package/c/hmpl/make.sh b/package/c/hmpl/make.sh index 44024e0..f4541d5 100644 --- a/package/c/hmpl/make.sh +++ b/package/c/hmpl/make.sh @@ -11,7 +11,7 @@ # help, --help Show this help message. check_dependencies() { - for dep in cc ar entr pager; do + for dep in cc ar pager; do if ! command -v "$dep" >/dev/null 2>&1; then echo "Error: Required dependency '$dep' not found." >&2 exit 1 @@ -92,7 +92,7 @@ build() { case "$MODE" in watch) - entr -r sh ./make.sh build | pager + find . -type d | nix run .#watch -- 'sh ./make.sh build && sh ./make.sh check' -i -p '*.c' -p '*.h' 2>&1 ;; build) build diff --git a/package/c/hmpl/test/test.c b/package/c/hmpl/test/test.c index 14ee214..0c54798 100644 --- a/package/c/hmpl/test/test.c +++ b/package/c/hmpl/test/test.c @@ -236,4 +236,4 @@ int main(void) { raise_notice("All tests passed successfully"); arena_free(&arena); return 0; -} +} \ No newline at end of file