From 379a6d6abe24a9829ac965c35f45803104b42eb9 Mon Sep 17 00:00:00 2001 From: olli Date: Sun, 4 Dec 2022 17:24:11 +0100 Subject: [PATCH] for loop better then while for loop better then while because of killing stdin in while loop after nextcloud.updates docker-compose cmds --- autoupdate.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/autoupdate.yml b/autoupdate.yml index b0f130e..691ad0d 100644 --- a/autoupdate.yml +++ b/autoupdate.yml @@ -25,7 +25,7 @@ g_lockfile g_all-to-syslog 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 g_echo "Running: $update" . "$update"