Skip to content

Commit

Permalink
read only first line
Browse files Browse the repository at this point in the history
  • Loading branch information
mrhotio committed Feb 17, 2024
1 parent 844fb16 commit 4a96561
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion root/etc/s6-overlay/s6-rc.d/service-rtorrent/run
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down

0 comments on commit 4a96561

Please sign in to comment.