mirror of
https://github.com/owntone/owntone-server.git
synced 2025-01-12 23:43:23 -05:00
Fix paringhelper.sh to operate correctly for device names with apostrophe
Before the fix, a log entry for ‘Foo’s iPhone’ would be parsed as originating from the device “Foo”. I have changed the matching to include the parenthesis opening after the closing single quote.
This commit is contained in:
parent
9cc4927d50
commit
e7c9cad9a6
@ -38,8 +38,8 @@ read -p "Press ENTER when ready..." yn
|
||||
echo -n "Looking in $logfile for Remote announcement..."
|
||||
sleep 5
|
||||
|
||||
remote=`grep "Discovered remote" $logfile | tail -1 | grep -Po "'.*?'"`
|
||||
remote="${remote%\'}"
|
||||
remote=`grep "Discovered remote" $logfile | tail -1 | grep -Po "'.*' \("`
|
||||
remote="${remote%\'\ \(}"
|
||||
remote="${remote#\'}"
|
||||
|
||||
if [ -z "$remote" ]; then
|
||||
|
Loading…
Reference in New Issue
Block a user