mirror of
https://github.com/LibreELEC/LibreELEC.tv.git
synced 2025-07-30 22:26:42 +00:00
Minor chrome-downloader fixes
This commit is contained in:
parent
48cefb979c
commit
91bf700446
@ -43,7 +43,7 @@ rm -f ${CONTROL_FILE} ${DATA_FILE}
|
||||
) | \
|
||||
while [ : ]; do
|
||||
[ -f ${DATA_FILE} ] && prog="$(tr '\r' '\n' < ${DATA_FILE} | tail -n 1 | sed -r 's/^[# ]+/#/;s/^[^0-9]*//g')" || prog=
|
||||
kodi-send --action="Notification(Downloading Chrome,"${prog:-0.0%}",3000,${ICON})" >/dev/null
|
||||
kodi-send --action="Notification(Downloading Chrome,\"${prog:-0.0%}\",3000,${ICON})" >/dev/null
|
||||
[ -f ${CONTROL_FILE} ] && break
|
||||
sleep 4
|
||||
done
|
||||
@ -60,6 +60,7 @@ mkdir $ADDON_DIR/chrome-bin
|
||||
tar xf data.tar.xz --strip-components=4 -C $ADDON_DIR/chrome-bin ./opt/google/chrome
|
||||
|
||||
# cleanup
|
||||
cd $ADDON_DIR
|
||||
rm -rf $ADDON_DIR/tmp_download
|
||||
touch $ADDON_DIR/extract.ok
|
||||
kodi-send --action="Notification(Extracting Chrome,finished,1000,${ICON})" >/dev/null
|
||||
|
Loading…
x
Reference in New Issue
Block a user