no while loop

because only firrst check will run
This commit is contained in:
olli 2022-11-29 09:57:47 +01:00
parent 854ecce550
commit 6c2d069f46

View File

@ -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"