no while loop
because only firrst check will run
This commit is contained in:
1 parent
854ecce550
commit
6c2d069f46
1 file changed
+1
-1
+1
-1
@@ -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"
|
||||
|
||||
Reference in new issue
Block a user