Merge pull request #199 from Japanuspus/master

Fix paringhelper.sh to operate correctly for device names with apostrophe
This commit is contained in:
ejurgensen 2015-11-14 23:59:54 +01:00
commit 77e77105f2

View File

@ -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