mirror of
https://github.com/mrworf/plexupdate.git
synced 2025-08-19 12:59:40 -07:00
Update FORCE option to only redownload if checksum fails
This commit is contained in:
parent
69c5e52cea
commit
6932ee924d
1 changed files with 2 additions and 3 deletions
|
@ -72,8 +72,7 @@ usage() {
|
||||||
echo ""
|
echo ""
|
||||||
echo " -a Auto install if download was successful (requires root)"
|
echo " -a Auto install if download was successful (requires root)"
|
||||||
echo " -d Auto delete after auto install"
|
echo " -d Auto delete after auto install"
|
||||||
echo " -f Force download even if it's the same version or file"
|
echo " -f Force download/update even if the newest release is already installed"
|
||||||
echo " already exists unless checksum passes"
|
|
||||||
echo " -h This help"
|
echo " -h This help"
|
||||||
echo " -l List available builds and distros"
|
echo " -l List available builds and distros"
|
||||||
echo " -p Public Plex Media Server version"
|
echo " -p Public Plex Media Server version"
|
||||||
|
@ -452,7 +451,7 @@ if [[ $FILENAME == *$INSTALLED_VERSION* ]] && [ "${FORCE}" != "yes" ] && [ ! -z
|
||||||
exit 0
|
exit 0
|
||||||
fi
|
fi
|
||||||
|
|
||||||
if [ -f "${DOWNLOADDIR}/${FILENAME}" -a "${FORCE}" != "yes" ]; then
|
if [ -f "${DOWNLOADDIR}/${FILENAME}" ]; then
|
||||||
if sha1sum --status -c "${FILE_SHA}"; then
|
if sha1sum --status -c "${FILE_SHA}"; then
|
||||||
info "File already exists (${FILENAME}), won't download."
|
info "File already exists (${FILENAME}), won't download."
|
||||||
if [ "${AUTOINSTALL}" != "yes" ]; then
|
if [ "${AUTOINSTALL}" != "yes" ]; then
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue