mirror of
https://github.com/owntone/owntone-server.git
synced 2024-12-24 22:25:56 -05:00
Merge pull request #111 from protree/patch-1
This commit is contained in:
commit
c52b2000fe
@ -12,9 +12,9 @@ fi
|
||||
logfile=`awk '$1=="logfile"{print $3}' $conf_path`
|
||||
logfile="${logfile%\"}"
|
||||
logfile="${logfile#\"}"
|
||||
library_path=`awk '$1=="directories"{print $4}' $conf_path`
|
||||
library_path="${library_path%\"}"
|
||||
library_path="${library_path#\"}"
|
||||
library_path=`awk '$1=="directories"{print}' $conf_path`
|
||||
library_path="${library_path#*\"}"
|
||||
library_path="${library_path%%\"*}"
|
||||
|
||||
if [ ! -f $logfile ]; then
|
||||
echo "Error: Couldn't find logfile in $logfile"
|
||||
@ -56,7 +56,7 @@ if [ -z "$pin" ]; then
|
||||
fi
|
||||
|
||||
echo "Writing pair.remote to $library_path..."
|
||||
echo -e "$remote\n$pin" > "$library_path/pair.remote"
|
||||
printf "$remote\n$pin" > "$library_path/pair.remote"
|
||||
sleep 1
|
||||
echo "Removing pair.remote from library again..."
|
||||
rm "$library_path/pair.remote"
|
||||
|
Loading…
Reference in New Issue
Block a user