for loop better then while

for loop better then while because of killing stdin in while loop after nextcloud.updates docker-compose cmds
This commit is contained in:
olli 2022-12-04 17:24:11 +01:00
parent fce544d6b5
commit 379a6d6abe

View File

@ -25,7 +25,7 @@
g_lockfile g_lockfile
g_all-to-syslog g_all-to-syslog
set -o pipefail set -o pipefail
find /usr/local/sbin/autoupdate.d -name "*.update" -type f | sort | while read update for update in $(find /usr/local/sbin/autoupdate.d -name "*.update" -type f | sort)
do do
g_echo "Running: $update" g_echo "Running: $update"
. "$update" . "$update"