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"
|
||||
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"
|
||||
|
Loading…
Reference in New Issue
Block a user