From a4d9d4c1787979a133e44a8865003d890da9b13c Mon Sep 17 00:00:00 2001 From: "ron.record" Date: Sun, 27 Oct 2024 18:14:26 -0700 Subject: [PATCH] Fix sed in discover --- etc/discover | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/etc/discover b/etc/discover index 9ef54f5..e69db9e 100755 --- a/etc/discover +++ b/etc/discover @@ -23,6 +23,11 @@ else fi fi +EX_CORE_IP=$(cat ${ROON_INI} | grep RoonCoreIP | awk -F '=' ' { print $2 } ') +EX_CORE_IP="$(echo -e "${EX_CORE_IP}" | sed -e 's/^[[:space:]]*//' -e 's/[[:space:]]*$//')" +EX_CORE_PORT=$(cat ${ROON_INI} | grep RoonCorePort | awk -F '=' ' { print $2 } ') +EX_CORE_PORT="$(echo -e "${EX_CORE_PORT}" | sed -e 's/^[[:space:]]*//' -e 's/[[:space:]]*$//')" + echo "In order to configure the Python Roon API we must set the IP address" echo "of the Roon Core. Discovery will be used to determine the Roon Core IP." echo "When prompted for authorization, go to a Roon Remote window and click"