no while loop
because only firrst check will run
This commit is contained in:
parent
854ecce550
commit
6c2d069f46
@ -37,7 +37,7 @@
|
|||||||
g_echo "Waiting 5min"
|
g_echo "Waiting 5min"
|
||||||
sleep 300
|
sleep 300
|
||||||
g_echo "Next Loop"
|
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
|
do
|
||||||
g_echo "Running: $check"
|
g_echo "Running: $check"
|
||||||
. "$check"
|
. "$check"
|
||||||
|
Loading…
Reference in New Issue
Block a user