chrome: chrome-downloader: add notification on failure

This commit is contained in:
mglae 2022-11-28 19:53:57 +01:00 committed by Rudi Heitbaum
parent d96f86708b
commit 56434932eb

View File

@ -61,5 +61,10 @@ mv opt/google/chrome $ADDON_DIR/chrome-bin
# cleanup # cleanup
cd $ADDON_DIR cd $ADDON_DIR
rm -rf $ADDON_DIR/tmp_download rm -rf $ADDON_DIR/tmp_download
touch $ADDON_DIR/extract.ok
kodi-send --action="Notification(Extracting Chrome,finished,1000,${ICON})" >/dev/null if [ -d chrome-bin ]; then
touch $ADDON_DIR/extract.ok
kodi-send --action="Notification(Extracting Chrome,finished,1000,${ICON})" >/dev/null
else
kodi-send --action="Notification(Extracting Chrome,FAILED!,10000,${ICON})" >/dev/null
fi