mirror of
https://github.com/mrworf/plexupdate.git
synced 2025-08-21 05:43:20 -07:00
Cleanup user notifications when autoinstall is set
This commit is contained in:
parent
e4c661c2f7
commit
e2f4222aa1
1 changed files with 5 additions and 5 deletions
|
@ -218,19 +218,19 @@ if [ "${REDHAT}" != "yes" ]; then
|
||||||
fi
|
fi
|
||||||
|
|
||||||
if [ -f "${DOWNLOADDIR}/${FILENAME}" -a "${FORCE}" != "yes" ]; then
|
if [ -f "${DOWNLOADDIR}/${FILENAME}" -a "${FORCE}" != "yes" ]; then
|
||||||
if [ "${AUTOINSTALL}" != "yes" ]; then
|
|
||||||
echo "File already exists, won't download."
|
echo "File already exists, won't download."
|
||||||
|
if [ "${AUTOINSTALL}" != "yes" ]; then
|
||||||
exit 2
|
exit 2
|
||||||
fi
|
fi
|
||||||
|
|
||||||
SKIP_DOWNLOAD="yes"
|
SKIP_DOWNLOAD="yes"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
if [ "${SKIP_DOWNLOAD}" == "no" ]; then
|
||||||
if [ -f "${DOWNLOADDIR}/${FILENAME}" ]; then
|
if [ -f "${DOWNLOADDIR}/${FILENAME}" ]; then
|
||||||
echo "Note! File exists, but asked to overwrite with new copy"
|
echo "Note! File exists, but asked to overwrite with new copy"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
if [ "${SKIP_DOWNLOAD}" == "no" ]; then
|
|
||||||
echo -ne "Downloading release \"${FILENAME}\"..."
|
echo -ne "Downloading release \"${FILENAME}\"..."
|
||||||
ERROR=$(wget --load-cookies /tmp/kaka --save-cookies /tmp/kaka --keep-session-cookies "${DOWNLOAD}" -O "${DOWNLOADDIR}/${FILENAME}" 2>&1)
|
ERROR=$(wget --load-cookies /tmp/kaka --save-cookies /tmp/kaka --keep-session-cookies "${DOWNLOAD}" -O "${DOWNLOADDIR}/${FILENAME}" 2>&1)
|
||||||
CODE=$?
|
CODE=$?
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue