2015-08-01, 10:19
Hi, I'm trying to clear my cache with an autostart.sh script I made in /storage/.config/ by deleting the 'cache.db' file and 'cache' folder
but it doesn't seem to work. I've tried invoking the script through ssh and I get the following:
OpenELEC:~/.config # sh autostart.sh
: not foundh: line 7:
: not found.config # autostart.sh: line 7:
Clearing Cache, One moment..
This is the autostart.sh
Any help would be appreciated.. Thanks
but it doesn't seem to work. I've tried invoking the script through ssh and I get the following:
OpenELEC:~/.config # sh autostart.sh
: not foundh: line 7:
: not found.config # autostart.sh: line 7:
Clearing Cache, One moment..
This is the autostart.sh
Code:
#!/bin/sh
# Clear Cache script
(
echo "Clearing Cache, One moment.."
rm -rf /storage/.kodi/userdata/addon_data/plugin.video.myplug/cache.db
rm -rf /storage/.kodi/userdata/addon_data/plugin.video.myplug/cache
) &
Any help would be appreciated.. Thanks