From c7a402cf26a18820dedd177e0b1f88f435f142b7 Mon Sep 17 00:00:00 2001 From: xZero707 Date: Fri, 17 May 2024 01:54:52 +0200 Subject: [PATCH] Fix SC2162 See: https://www.shellcheck.net/wiki/SC2162 --- rootfs/etc/s6-overlay/s6-rc.d/init-install-resources/run | 2 +- rootfs/etc/s6-overlay/s6-rc.d/init-verify-wordpress/run | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/rootfs/etc/s6-overlay/s6-rc.d/init-install-resources/run b/rootfs/etc/s6-overlay/s6-rc.d/init-install-resources/run index c37c89d..2f91218 100755 --- a/rootfs/etc/s6-overlay/s6-rc.d/init-install-resources/run +++ b/rootfs/etc/s6-overlay/s6-rc.d/init-install-resources/run @@ -103,7 +103,7 @@ function taskInstallPlugins() { # init-install-resources main main() { - exec > >(while read line; do echo "[init-install-resources] ${line}"; done) 2>&1 + exec > >(while read -r line; do echo "[init-install-resources] ${line}"; done) 2>&1 PLUGIN_LIST="${WORDPRESS_PLUGIN_LIST:-}" WP_CONTENT_PATH="/var/www/html/wp-content" diff --git a/rootfs/etc/s6-overlay/s6-rc.d/init-verify-wordpress/run b/rootfs/etc/s6-overlay/s6-rc.d/init-verify-wordpress/run index cf84173..cc7c8ed 100755 --- a/rootfs/etc/s6-overlay/s6-rc.d/init-verify-wordpress/run +++ b/rootfs/etc/s6-overlay/s6-rc.d/init-verify-wordpress/run @@ -25,7 +25,7 @@ function reportUnhealthy() { # init-verify-wordpress main function main() { - exec > >(while read line; do echo "[init-verify-wordpress] ${line}"; done) 2>&1 + exec > >(while read -r line; do echo "[init-verify-wordpress] ${line}"; done) 2>&1 local wpCurrentVersion local wpInstalledVersion