From 4a965614aa15d2ba0b03b24bc96e8e83b2a3beb8 Mon Sep 17 00:00:00 2001 From: mrhotio <26902309+mrhotio@users.noreply.github.com> Date: Sat, 17 Feb 2024 11:07:32 +0100 Subject: [PATCH] read only first line --- root/etc/s6-overlay/s6-rc.d/service-rtorrent/run | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/root/etc/s6-overlay/s6-rc.d/service-rtorrent/run b/root/etc/s6-overlay/s6-rc.d/service-rtorrent/run index 23478ff6..6ff13d4a 100644 --- a/root/etc/s6-overlay/s6-rc.d/service-rtorrent/run +++ b/root/etc/s6-overlay/s6-rc.d/service-rtorrent/run @@ -5,7 +5,7 @@ umask "${UMASK}" ARGS="" if [[ -f "${CONFIG_DIR}/wireguard/forwarded_port" ]]; then - port=$(cat "${CONFIG_DIR}/wireguard/forwarded_port") + port=$(sed -n '1p' "${CONFIG_DIR}/wireguard/forwarded_port") ARGS="-p ${port}-${port}" fi