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:
parent
fce544d6b5
commit
379a6d6abe
@ -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"
|
||||
|
Loading…
Reference in New Issue
Block a user