mirror of
https://github.com/LibreELEC/LibreELEC.tv.git
synced 2025-08-01 06:57:50 +00:00
chrome: downloader fixes
This commit is contained in:
parent
4887950c28
commit
4f26cde439
@ -44,7 +44,7 @@ rm -f ${CONTROL_FILE} ${DATA_FILE}
|
|||||||
) | \
|
) | \
|
||||||
while [ : ]; do
|
while [ : ]; do
|
||||||
[ -f ${DATA_FILE} ] && prog="$(tr '\r' '\n' < ${DATA_FILE} | tail -n 1 | sed -r 's/^[# ]+/#/;s/^[^0-9]*//g')" || prog=
|
[ -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
|
[ -f ${CONTROL_FILE} ] && break
|
||||||
sleep 4
|
sleep 4
|
||||||
done
|
done
|
||||||
@ -61,6 +61,7 @@ mkdir $ADDON_DIR/chrome-bin
|
|||||||
tar xf data.tar.xz --strip-components=4 -C $ADDON_DIR/chrome-bin ./opt/google/chrome
|
tar xf data.tar.xz --strip-components=4 -C $ADDON_DIR/chrome-bin ./opt/google/chrome
|
||||||
|
|
||||||
# cleanup
|
# cleanup
|
||||||
|
cd $ADDON_DIR
|
||||||
rm -rf $ADDON_DIR/tmp_download
|
rm -rf $ADDON_DIR/tmp_download
|
||||||
touch $ADDON_DIR/extract.ok
|
touch $ADDON_DIR/extract.ok
|
||||||
kodi-send --action="Notification(Extracting Chrome,finished,1000,${ICON})" >/dev/null
|
kodi-send --action="Notification(Extracting Chrome,finished,1000,${ICON})" >/dev/null
|
||||||
|
Loading…
x
Reference in New Issue
Block a user