I am not finished working on it, but i like testing each function, to make sure everything works before going to the next step.
Perhaps one of you can see my error.
- Code: Select all
#by craig m. rosenblum
#make sure temp folder exists
if [ ! -d "$tmp" ]; then
#get the url of the latest stable release
filename=$(curl http://www.sshcs.com/xbmc/?mode=MU 2>&1 | sed 's/^.*<a href="//' | sed 's/".*$//' | grep '/xbmc/downloader*' | tail -1);
#combine both into full url
wget -O $dld/xbmc_latest.zip $fullurl
#verify that the file exists
if [ ! -f "$latest" ]; then
#change to the tmp folder
#unzip file to the tmp folder