Ok so you should have the script in the osmc folder:
/home/osmc/spotify-connect-web.sh
Now edit the script, you have to replace “$DIR” with “spotify-connect-web.sh” but only in the IF statement"
sudo nano /home/osmc/spotify-connect-web.sh
Now find “mkdir -p $DIR” and change it to “mkdir -p spotify-connect-web.sh”
Do the same for “cd $DIR” change it to “cd spotify-connect-web.sh”
Done! Now save your changes with CTRL+O and exit the editor with CTRL+X. Now just run the sh script just like you did before with install. It will download again and you will notice after download it will “hang” for a few moments (it is extracting the files to the correct location now).