Skip to content

Commit

Permalink
Fix sed in discover
Browse files Browse the repository at this point in the history
  • Loading branch information
ron.record committed Oct 28, 2024
1 parent 2694eb8 commit a4d9d4c
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions etc/discover
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down

0 comments on commit a4d9d4c

Please sign in to comment.