mirror of
https://github.com/owntone/owntone-server.git
synced 2025-01-14 08:15:02 -05:00
Merge pull request #199 from Japanuspus/master
Fix paringhelper.sh to operate correctly for device names with apostrophe
This commit is contained in:
commit
77e77105f2
@ -38,8 +38,8 @@ read -p "Press ENTER when ready..." yn
|
|||||||
echo -n "Looking in $logfile for Remote announcement..."
|
echo -n "Looking in $logfile for Remote announcement..."
|
||||||
sleep 5
|
sleep 5
|
||||||
|
|
||||||
remote=`grep "Discovered remote" $logfile | tail -1 | grep -Po "'.*?'"`
|
remote=`grep "Discovered remote" $logfile | tail -1 | grep -Po "'.*' \("`
|
||||||
remote="${remote%\'}"
|
remote="${remote%\'\ \(}"
|
||||||
remote="${remote#\'}"
|
remote="${remote#\'}"
|
||||||
|
|
||||||
if [ -z "$remote" ]; then
|
if [ -z "$remote" ]; then
|
||||||
|
Loading…
Reference in New Issue
Block a user