Closed jcnventura closed 9 years ago
I'll do a pull request later, but the following patch fixed this for me:
--- install-retrosmc.sh.orig 2015-07-02 21:50:59.566543338 +0200
+++ install-retrosmc.sh 2015-07-02 21:59:56.924325905 +0200
@@ -60,10 +60,11 @@
./install-retrosmc.sh
;;
3)
- if [ ! "$(grep retropie.sh /home/osmc/.kodi/userdata/addon_data/script.skinshortcuts/mainmenu.DATA.xml 2>&1)" ]; then
+ if [ ! -f /home/osmc/.kodi/userdata/addon_data/script.skinshortcuts/mainmenu.DATA.xml ]; then
cp /usr/share/kodi/addons/skin.osmc/shortcuts/mainmenu.DATA.xml /home/osmc/.kodi/userdata/addon_data/script.skinshortcuts/mainmenu.DATA.xml
sudo chown osmc:osmc /home/osmc/.kodi/userdata/addon_data/script.skinshortcuts/mainmenu.DATA.xml
-
+ fi
+ if [ ! "$(grep retropie.sh /home/osmc/.kodi/userdata/addon_data/script.skinshortcuts/mainmenu.DATA.xml 2>&1)" ]; then
See pull request #7
Hi,
On a fresh install, the /home/osmc/.kodi/userdata/addon_data/script.skinshortcuts/mainmenu.DATA.xml file may not exist. The 'grep' will fail because of that, and the shortcut will not be created.
The current algorithm is also wrong. It's:
It should be: