mirror of
https://github.com/LibreELEC/LibreELEC.tv.git
synced 2025-07-24 11:16:51 +00:00
scripts/get: avoid flip-flopping downloads
This commit is contained in:
parent
d34853b033
commit
dc61719ae4
@ -21,12 +21,9 @@
|
||||
. config/options $1
|
||||
|
||||
_get_file_already_downloaded() {
|
||||
if [ -f $PACKAGE ]; then
|
||||
if [ "$(cat $STAMP_URL 2>/dev/null)" == "${PKG_URL}" ]; then
|
||||
[ -z "${PKG_SHA256}" -o "$(cat $STAMP_SHA 2>/dev/null)" == "${PKG_SHA256}" ] && return 0
|
||||
fi
|
||||
fi
|
||||
return 1
|
||||
[ ! -f $PACKAGE ] && return 1
|
||||
[ -n "${PKG_SHA256}" -a "$(cat $STAMP_SHA 2>/dev/null)" != "${PKG_SHA256}" ] && return 1
|
||||
return 0
|
||||
}
|
||||
|
||||
if [ -z "$1" ]; then
|
||||
|
Loading…
x
Reference in New Issue
Block a user