From c23238aaa3ac44b273a3d6bafeded66635734969 Mon Sep 17 00:00:00 2001 From: Minecon724 Date: Tue, 3 Jun 2025 13:26:18 +0200 Subject: [PATCH] [HACK] Wait for webpack to complete before starting Very hacky --- tools/watch.sh | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/tools/watch.sh b/tools/watch.sh index 5e8defa49c..8c63d44b59 100644 --- a/tools/watch.sh +++ b/tools/watch.sh @@ -1,8 +1,13 @@ #!/bin/bash set -euo pipefail -make --no-print-directory watch-frontend & -make --no-print-directory watch-backend & +make --no-print-directory watch-frontend | tee >( + awk -v pattern="webpack" ' + $0 ~ pattern { + system("make --no-print-directory watch-backend &") + } + ' +) & trap 'kill $(jobs -p)' EXIT wait