Quantcast
Channel: Squeezebox : Community : Forums - Logitech Media Server
Viewing all articles
Browse latest Browse all 5323

Syntax error in script

$
0
0
I have followed the guidelines in http://wiki.slimdevices.com/index.php/Debian_Package but get a strange syntax error
/etc/init.d/logitechmediaserver: 124: /etc/init.d/logitechmediaserver: Syntax error: "}" unexpected (expecting ")")
I have Ubuntu 15.04 LTS server.
Here is a cut from the script ...

107
108 d_update() {
109 latest_lms=$(wget -q -O - "http://www.mysqueezebox.com/update/?version=7.9.0&revision=1&geturl=1&
110 lms_deb=$(echo $latest_lms|cut -d "/" -f8)
111 lms_new_Version=$(echo $lms_deb |cut -d "_" -f2)
112 installed_lms=$(dpkg-query -W -f '${status} ${package} ${version}\n'|grep logitech |cut -d " " -f
113 ls /sources/logi* -1t | tail -3| xargs -d '\n' rm -f
114 if [ ! $lms_new_Version = $installed_lms ]
115 then
116 echo 'Update Logitechmediaserver $installed_lms to $lms_newVersion'
117 mkdir -p /sources
118 cd /sources
119 wget $latest_lms
120 dpkg -i /sources/$lms_deb
121 else
122 echo "latest Version $lms_new_Version already installed"
123 fi
124 }
125

Viewing all articles
Browse latest Browse all 5323

Latest Images

Trending Articles



Latest Images