From 6c2d069f4661e1a576844cd1372932eac3a3a3d3 Mon Sep 17 00:00:00 2001 From: olli Date: Tue, 29 Nov 2022 09:57:47 +0100 Subject: [PATCH] no while loop because only firrst check will run --- runchecks.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/runchecks.yml b/runchecks.yml index 70659bc..40fc82d 100644 --- a/runchecks.yml +++ b/runchecks.yml @@ -37,7 +37,7 @@ g_echo "Waiting 5min" sleep 300 g_echo "Next Loop" - find /usr/local/sbin/runchecks.d -name "*.check" -type f | sort | while read check + for check in $(find /usr/local/sbin/runchecks.d -name "*.check" -type f | sort) do g_echo "Running: $check" . "$check"